Skip to content

Commit

Permalink
Production base path
Browse files Browse the repository at this point in the history
  • Loading branch information
Keskimaki committed Apr 25, 2023
1 parent 4299fac commit 80fa7f2
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'

import { inStaging } from './src/config'
import { inProduction, inStaging } from './src/config'

// eslint-disable-next-line no-nested-ternary
const base = inProduction ? '/chat' : inStaging ? '/gptwrapper' : '/'

export default defineConfig({
plugins: [react()],
base: inStaging ? '/gptwrapper' : '/',
base,
server: {
proxy: {
'/api/': {
Expand Down

0 comments on commit 80fa7f2

Please sign in to comment.