8 lines
186 B
Bash
8 lines
186 B
Bash
#!/bin/sh
|
|
|
|
# Create a JavaScript file with environment variables
|
|
echo "window._env_ = { VITE_API_URL: \"$VITE_API_URL\" };" > /app/dist/env.js
|
|
|
|
# Start the Vite preview server
|
|
exec "$@"
|