2024-08-08 08:20:58 -04:00
|
|
|
import { dirname, join } from "path";
|
|
|
|
import { fileURLToPath } from "url";
|
|
|
|
|
2024-08-09 09:39:24 -04:00
|
|
|
import type{ IEnvironment } from "../src/interfaces/environment";
|
2024-08-08 08:20:58 -04:00
|
|
|
|
|
|
|
const __dirname : string = join(dirname(fileURLToPath(import.meta.url)), "..");
|
|
|
|
|
|
|
|
const environment : IEnvironment = {
|
|
|
|
development: process.argv.includes("--development"),
|
|
|
|
|
|
|
|
fastify: {
|
|
|
|
host: "0.0.0.0",
|
|
|
|
port: 7788
|
|
|
|
},
|
|
|
|
|
|
|
|
paths: {
|
|
|
|
src: __dirname,
|
|
|
|
www: {
|
|
|
|
root: join(__dirname, "src", "www"),
|
|
|
|
views: join(__dirname, "src", "www", "views"),
|
|
|
|
public: join(__dirname, "src", "www", "public")
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
export default environment;
|
|
|
|
export { environment };
|