TSFastifyExample/config/environment.ts
creations 1ccf80474c Common changes for simplicity
Changed fastify handler to handle the actual registration of the rout file with the routeinfo. changed all ' to " instead moves types and interfaces to the respective folders and files
2024-08-09 07:10:21 -04:00

27 lines
674 B
TypeScript

import { dirname, join } from "path";
import { fileURLToPath } from "url";
import type{ IEnvironment } from "../interfaces/environment";
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 };