Fix jwt-token
This commit is contained in:
@@ -19,10 +19,12 @@ COPY . .
|
||||
# Build arguments for environment variables
|
||||
ARG VITE_API_URL=http://localhost:3001/api
|
||||
ARG VITE_WS_URL=ws://localhost:3001
|
||||
ARG NODE_ENV=production
|
||||
|
||||
# Set environment variables for build
|
||||
ENV VITE_API_URL=$VITE_API_URL
|
||||
ENV VITE_WS_URL=$VITE_WS_URL
|
||||
ENV NODE_ENV=$NODE_ENV
|
||||
|
||||
# Build the application
|
||||
RUN npm run build
|
||||
|
||||
@@ -3,6 +3,7 @@ import react from '@vitejs/plugin-react'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [react()],
|
||||
base: process.env.NODE_ENV === 'production' ? '/drones/' : '/',
|
||||
server: {
|
||||
port: 3000,
|
||||
proxy: {
|
||||
|
||||
Reference in New Issue
Block a user