Skip to content

Commit

Permalink
update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
pgorecki committed Jan 14, 2024
1 parent 855fa5f commit 1e49781
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ui/.env.development
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_PORT = 5173
PORT = 5173
2 changes: 1 addition & 1 deletion ui/.env.production
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VITE_PORT = 80
PORT = 80
8 changes: 4 additions & 4 deletions ui/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ export default defineConfig(({ mode }) => {
return {
plugins: [react()],
server: {
port: parseInt(process.env.VITE_PORT),
port: parseInt(process.env.PORT),
proxy: {
'/api': {
target: 'http://promptsail.local:8000',
target: process.env.BACKEND_URL || 'http://promptsail.local:8000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
}
},
preview: {
port: parseInt(process.env.VITE_PORT),
port: parseInt(process.env.PORT),
proxy: {
'/api': {
target: 'http://promptsail-backend:8000',
target: process.env.BACKEND_URL || 'http://promptsail-backend:8000',
changeOrigin: true,
rewrite: (path) => path.replace(/^\/api/, '')
}
Expand Down

0 comments on commit 1e49781

Please sign in to comment.