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