Implemented Docker Release action with GitHub workflows and added release versioning with docker build args Signed-off-by: Abhinav Sinha <[email protected]>
21 lines
441 B
JavaScript
21 lines
441 B
JavaScript
import { defineConfig } from 'vite'
|
|
import react from '@vitejs/plugin-react'
|
|
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
proxy: {
|
|
'/api': 'http://localhost:4000'
|
|
}
|
|
},
|
|
build: {
|
|
outDir: 'dist'
|
|
},
|
|
define: {
|
|
// Fallback to 'dev' when VITE_APP_VERSION is not injected at build time
|
|
'import.meta.env.VITE_APP_VERSION': JSON.stringify(
|
|
process.env.VITE_APP_VERSION || 'dev'
|
|
)
|
|
}
|
|
})
|