Switch frontend server to Nuxt

This commit is contained in:
Jesse Wierzbinski 2024-04-09 01:14:53 -10:00
parent 9476770cdb
commit dc17cffd75
No known key found for this signature in database
24 changed files with 921 additions and 22 deletions

View file

@ -0,0 +1,18 @@
import { loadConfig } from "c12";
import { type Config, defaultConfig } from "config-manager/config.type";
const promise = loadConfig<Config>({
configFile: "./config/config.toml",
defaultConfig: defaultConfig,
});
export default defineEventHandler(async () => {
const { config } = await promise;
return {
http: {
bind: config?.http.bind,
bind_port: config?.http.bind_port,
base_url: config?.http.base_url,
},
};
});

View file

@ -0,0 +1,3 @@
{
"extends": "../.nuxt/tsconfig.server.json"
}