feat: .env.example and vite config

added example
added comments in vite config for clarification
This commit is contained in:
c4lyp5o
2023-11-07 16:58:31 +08:00
parent 78c7bee34a
commit d2b07733cd
2 changed files with 9 additions and 0 deletions

7
backend/.env.example Normal file
View File

@@ -0,0 +1,7 @@
POSTGRES_USER = # your postgres username
POSTGRES_PASSWORD = # your postgres password
POSTGRES_IP = # your postgres IP
POSTGRES_PORT = # your postgres port
JWT_SECRET = # ultra secret word

View File

@@ -4,7 +4,9 @@ import react from '@vitejs/plugin-react-swc';
// https://vitejs.dev/config/
export default defineConfig({
server: {
// port for exposing frontend
port: 3000,
// port for exposing APIs
proxy: {
'/api': 'http://localhost:3003',
'/proxy': 'http://localhost:3003',