init
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
import { loadEnvFile } from "node:process";
|
||||
import fs from "node:fs";
|
||||
|
||||
try {
|
||||
loadEnvFile();
|
||||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
|
||||
export default {
|
||||
build: {
|
||||
outDir: "build",
|
||||
// sourcemap: true,
|
||||
},
|
||||
server: {
|
||||
https:
|
||||
process.env.SSL_CRT_FILE && process.env.SSL_KEY_FILE
|
||||
? {
|
||||
key: fs.readFileSync(process.env.SSL_KEY_FILE),
|
||||
cert: fs.readFileSync(process.env.SSL_CRT_FILE),
|
||||
}
|
||||
: null,
|
||||
allowedHosts: true,
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user