201 előtti mentés
This commit is contained in:
@@ -34,6 +34,9 @@ export default defineNuxtConfig({
|
||||
define: {
|
||||
'process.env.DEBUG': false,
|
||||
},
|
||||
server: {
|
||||
allowedHosts: ['admin.servicefinder.hu']
|
||||
},
|
||||
},
|
||||
runtimeConfig: {
|
||||
public: {
|
||||
@@ -41,5 +44,18 @@ export default defineNuxtConfig({
|
||||
appName: 'Service Finder Admin',
|
||||
appVersion: '1.0.0'
|
||||
}
|
||||
},
|
||||
// Nitro proxy configuration for Docker networking
|
||||
routeRules: {
|
||||
'/api/**': {
|
||||
proxy: 'http://sf_api:8000/api/**',
|
||||
// Add CORS headers for development
|
||||
cors: true,
|
||||
headers: {
|
||||
'Access-Control-Allow-Origin': '*',
|
||||
'Access-Control-Allow-Methods': 'GET, POST, PUT, DELETE, OPTIONS',
|
||||
'Access-Control-Allow-Headers': 'Content-Type, Authorization'
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user