fix(repo): we start over, its really that time
Some checks failed
Build and Deploy / Build Images and Deploy to Server (push) Has been cancelled
Some checks failed
Build and Deploy / Build Images and Deploy to Server (push) Has been cancelled
This commit is contained in:
parent
8ed519b89a
commit
d6378b8eb1
73 changed files with 1 additions and 6205 deletions
26
frontend/vite.config.js
Normal file
26
frontend/vite.config.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
import { defineConfig } from "vite";
|
||||
import react from "@vitejs/plugin-react-swc";
|
||||
import jsconfigPaths from "vite-jsconfig-paths";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
|
||||
try {
|
||||
process.loadEnvFile(".env")
|
||||
} catch (error) {
|
||||
console.log("Env file not found!\n" + error)
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [tailwindcss(), react(), jsconfigPaths()],
|
||||
resolve: {
|
||||
alias: {
|
||||
src: "/src",
|
||||
},
|
||||
},
|
||||
// Defines envrionmental files across all src code b/c prefix is usually "VITE"
|
||||
define: {
|
||||
'import.meta.env.GEMINI_API_KEY': JSON.stringify(process.env.GEMINI_API_KEY),
|
||||
},
|
||||
preview: {
|
||||
allowedHosts: ["astrachat.christbru.services"]
|
||||
}
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue