Svelte UI Update
This commit is contained in:
18
vite.config.js
Normal file
18
vite.config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
import { defineConfig } from 'vite'
|
||||
import { svelte } from '@sveltejs/vite-plugin-svelte'
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [svelte()],
|
||||
server: {
|
||||
env: {
|
||||
// Geliştirme ortamında .env.dev dosyasını kullan
|
||||
VITE_API_URL: process.env.VITE_API_URL
|
||||
}
|
||||
},
|
||||
build: {
|
||||
env: {
|
||||
// Üretim ortamında .env.prod dosyasını kullan
|
||||
VITE_API_URL: process.env.VITE_API_URL
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user