mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
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 nextConfig = {
|
||||
assetPrefix: '/spaces/',
|
||||
reactStrictMode: false,
|
||||
swcMinify: true,
|
||||
experimental: {
|
||||
|
@ -69,10 +69,13 @@ services:
|
||||
NEXT_PUBLIC_API_BASE_URL: http://localhost:8000
|
||||
restart: always
|
||||
command: /usr/local/bin/start.sh apps/space/server.js space
|
||||
expose:
|
||||
- 4000
|
||||
env_file:
|
||||
- .env
|
||||
environment:
|
||||
NEXT_PUBLIC_API_BASE_URL: ${NEXT_PUBLIC_API_BASE_URL}
|
||||
PORT: 4000
|
||||
depends_on:
|
||||
- plane-api
|
||||
- plane-worker
|
||||
|
@ -16,10 +16,7 @@ server {
|
||||
}
|
||||
|
||||
location /spaces/ {
|
||||
rewrite ^/spaces/(.*)$ /$1 break;
|
||||
proxy_pass http://planedeploy:4000/;
|
||||
sub_filter 'http://localhost/_next/static/' 'http://localhost/spaces/_next/static/';
|
||||
sub_filter_once off;
|
||||
}
|
||||
|
||||
location /api/ {
|
||||
|
Loading…
Reference in New Issue
Block a user