nice
This commit is contained in:
parent
69da08d133
commit
f69de9a8df
@ -4,17 +4,6 @@ import react from '@vitejs/plugin-react'
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
|
||||
server: {
|
||||
proxy: {
|
||||
'/api': {
|
||||
target: 'http://localhost:1029',
|
||||
changeOrigin: true,
|
||||
secure: false,
|
||||
rewrite: (path) => path.replace(/^\/api/, '/api')
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
preview: {
|
||||
allowedHosts: [
|
||||
'boulangerie.louismazin.ovh'
|
||||
|
||||
3
start.sh
3
start.sh
@ -54,13 +54,14 @@ if [ ! -x "node_modules/.bin/vite" ]; then
|
||||
npm ci
|
||||
fi
|
||||
|
||||
|
||||
echo "Build React..."
|
||||
|
||||
npm run build
|
||||
|
||||
echo "Démarrage frontend sur :1028"
|
||||
|
||||
npm run preview --host 0.0.0.0 --port 1028 &
|
||||
npm run preview -- --host 0.0.0.0 --port 1028 &
|
||||
FRONTEND_PID=$!
|
||||
|
||||
# --------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user