Files
smarthome/vite.config.js
2024-03-23 14:56:45 +03:00

19 lines
420 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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
}
}
})