Spaces:
Sleeping
Sleeping
GamerC0der
commited on
Commit
·
8077bb9
1
Parent(s):
c59db31
Fix Remix Vite plugin configuration for Docker
Browse files- Re-enable Cloudflare dev proxy to maintain Remix plugin compatibility
- Remove DISABLE_CLOUDFLARE_PROXY environment variable
- Keep --host 0.0.0.0 binding for external access
- Dockerfile +1 -2
- vite.config.ts +1 -1
Dockerfile
CHANGED
|
@@ -18,8 +18,7 @@ EXPOSE 7860
|
|
| 18 |
# Set environment variables
|
| 19 |
ENV NODE_ENV=production \
|
| 20 |
RUNNING_IN_DOCKER=true \
|
| 21 |
-
PORT=7860
|
| 22 |
-
DISABLE_CLOUDFLARE_PROXY=true
|
| 23 |
|
| 24 |
# Start command using pnpm run dev with host binding
|
| 25 |
CMD ["pnpm", "run", "dev", "--", "--host", "0.0.0.0"]
|
|
|
|
| 18 |
# Set environment variables
|
| 19 |
ENV NODE_ENV=production \
|
| 20 |
RUNNING_IN_DOCKER=true \
|
| 21 |
+
PORT=7860
|
|
|
|
| 22 |
|
| 23 |
# Start command using pnpm run dev with host binding
|
| 24 |
CMD ["pnpm", "run", "dev", "--", "--host", "0.0.0.0"]
|
vite.config.ts
CHANGED
|
@@ -138,7 +138,7 @@ export default defineConfig((config) => {
|
|
| 138 |
return null;
|
| 139 |
},
|
| 140 |
},
|
| 141 |
-
config.mode !== 'test' &&
|
| 142 |
remixVitePlugin({
|
| 143 |
future: {
|
| 144 |
v3_fetcherPersist: true,
|
|
|
|
| 138 |
return null;
|
| 139 |
},
|
| 140 |
},
|
| 141 |
+
config.mode !== 'test' && remixCloudflareDevProxy(),
|
| 142 |
remixVitePlugin({
|
| 143 |
future: {
|
| 144 |
v3_fetcherPersist: true,
|