Files
Travel-tracker/vite.config.js
Bram Prieshof e88269224c Added backend and refactored frond-end to support it.
* Removed unecesery home page
* Added PHP Api that provides auth and replaces the json-server for data storage
* Added support for alternate geocode-api
* Added registration  page
2025-05-27 00:42:00 +02:00

12 lines
304 B
JavaScript

import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
export default defineConfig({
plugins: [react()],
define: {
//Prod//
'import.meta.env.VITE_API_URL': JSON.stringify('/api'),
//Dev//
// 'import.meta.env.VITE_API_URL': JSON.stringify('http://devsrv.tld/api'),
}
})