feat: Containerize services with Docker Compose (PostgreSQL, Strapi CMS, Express Backend, Nginx Frontend) on custom ports >9000
This commit is contained in:
+3
-3
@@ -9,18 +9,18 @@ export default defineConfig((configEnv) => {
|
||||
const isVercel = Boolean(process.env.VERCEL)
|
||||
|
||||
return {
|
||||
base: (isDev || isVercel) ? '/' : '/citpl_website/',
|
||||
base: process.env.VITE_BASE ?? ((isDev || isVercel) ? '/' : '/citpl_website/'),
|
||||
plugins: [react()],
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://127.0.0.1:3002',
|
||||
target: 'http://127.0.0.1:3005',
|
||||
changeOrigin: true,
|
||||
proxyTimeout: 120000,
|
||||
timeout: 120000,
|
||||
},
|
||||
'/uploads': {
|
||||
target: 'http://127.0.0.1:3002',
|
||||
target: 'http://127.0.0.1:3005',
|
||||
changeOrigin: true,
|
||||
},
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user