This commit is contained in:
despiegk 2025-07-30 12:23:43 +02:00
parent 84f8d956fc
commit e611e77128
2 changed files with 19 additions and 4 deletions

View File

@ -1,5 +1,17 @@
#!/bin/bash
cd "$(dirname "$0")"
PREFIX="threefoldgalaxy"
# echo "Building without prefix"
# export VITE_APP_BASE_URL=""
# pnpm run build
# rsync -avz --delete dist/ "root@threefold.info:/root/hero/www/info/$PREFIX/"
echo "Building with prefix: /$PREFIX/"
export VITE_APP_BASE_URL="/$PREFIX/"
pnpm run build
rsync -avz --delete dist/ root@threefold.info:/root/hero/www/info/threefoldgalaxy/
rsync -rav --delete dist/ ${HOME}/hero/var/www/threefoldgalaxy/
rsync -rav --delete dist/ "${HOME}/hero/var/www/$PREFIX/"
rsync -avz --delete dist/ "root@threefold.info:/root/hero/www/info/$PREFIX/"

View File

@ -5,9 +5,12 @@ import path from 'path'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(),tailwindcss()],
base: process.env.VITE_APP_BASE_URL || '/',
plugins: [react(), tailwindcss({
config: './tailwind.config.js',
})],
server: {
allowedHosts: ['*','6162370c7e84.ngrok-free.app','092443e84c95.ngrok-free.app'],
allowedHosts: ['919d3b60e744.ngrok-free.app'],
},
resolve: {
alias: {