This commit is contained in:
@ -41,8 +41,8 @@ steps:
|
|||||||
|
|
||||||
# Build args → styr Vite och proxybas
|
# Build args → styr Vite och proxybas
|
||||||
build_args:
|
build_args:
|
||||||
- VITE_API_BASE_URL=https://rubble.se/hemhub/api
|
- VITE_API_BASE_URL=https://rubble.se/hemhub/api/
|
||||||
- VITE_BASE_PATH=/hemhub/app
|
- VITE_BASE_PATH=/hemhub/app/
|
||||||
|
|
||||||
# Taggar (latest + kort SHA)
|
# Taggar (latest + kort SHA)
|
||||||
tags:
|
tags:
|
||||||
|
|||||||
@ -5,6 +5,7 @@ import tsconfigPaths from 'vite-tsconfig-paths'
|
|||||||
import { fileURLToPath, URL } from 'node:url'
|
import { fileURLToPath, URL } from 'node:url'
|
||||||
|
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
|
base: process.env.VITE_BASE_PATH || '/', // sätts i builden
|
||||||
plugins: [react(), tsconfigPaths()],
|
plugins: [react(), tsconfigPaths()],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
|
|||||||
Reference in New Issue
Block a user