forked from github/plane
chore: added asset prefix for loading static assets with /space/ asset prefix
This commit is contained in:
parent
82cc1f0ed8
commit
2ec9d646e3
@ -2,6 +2,7 @@
|
|||||||
const path = require("path");
|
const path = require("path");
|
||||||
|
|
||||||
const nextConfig = {
|
const nextConfig = {
|
||||||
|
assetPrefix: '/spaces/',
|
||||||
reactStrictMode: false,
|
reactStrictMode: false,
|
||||||
swcMinify: true,
|
swcMinify: true,
|
||||||
experimental: {
|
experimental: {
|
||||||
|
@ -69,10 +69,13 @@ services:
|
|||||||
NEXT_PUBLIC_API_BASE_URL: http://localhost:8000
|
NEXT_PUBLIC_API_BASE_URL: http://localhost:8000
|
||||||
restart: always
|
restart: always
|
||||||
command: /usr/local/bin/start.sh apps/space/server.js space
|
command: /usr/local/bin/start.sh apps/space/server.js space
|
||||||
|
expose:
|
||||||
|
- 4000
|
||||||
env_file:
|
env_file:
|
||||||
- .env
|
- .env
|
||||||
environment:
|
environment:
|
||||||
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
|
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
|
||||||
|
PORT: 4000
|
||||||
depends_on:
|
depends_on:
|
||||||
- plane-api
|
- plane-api
|
||||||
- plane-worker
|
- plane-worker
|
||||||
|
@ -16,10 +16,7 @@ server {
|
|||||||
}
|
}
|
||||||
|
|
||||||
location /spaces/ {
|
location /spaces/ {
|
||||||
rewrite ^/spaces/(.*)$ /$1 break;
|
|
||||||
proxy_pass http://planedeploy:4000/;
|
proxy_pass http://planedeploy:4000/;
|
||||||
sub_filter 'http://localhost/_next/static/' 'http://localhost/spaces/_next/static/';
|
|
||||||
sub_filter_once off;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
location /api/ {
|
location /api/ {
|
||||||
|
Loading…
Reference in New Issue
Block a user