Skip to content

Commit

Permalink
fix(backend): add missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
BrycensRanch committed Oct 2, 2023
1 parent a843b85 commit 3bf0ada
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion backend/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import type { FastifyPluginAsync, FastifyReply, FastifyRequest } from 'fastify';
// import inputValidation from 'openapi-validator-middleware';
import { existsSync, mkdirSync } from 'node:fs';
import { join, dirname } from 'node:path';
import { dotenvLoad as loadMonoRepoEnvironment } from 'dotenv-mono';

import { fileURLToPath } from 'node:url';
import printRoutes from 'fastify-print-routes';
Expand All @@ -36,9 +37,11 @@ import fastifyETag from '@fastify/etag';
import { expand, DotenvExpandOptions } from 'dotenv-expand';
// import fastifyViews from '@fastify/view';
// import * as eta from 'eta';
const defaults = await import(`dotenv-defaults`);

// Initializing the default environment variables
expand(
loadEnvironmentDefaultsAndRegularEnvironment({
defaults.config({
path: './.env',
encoding: 'utf8',
defaults: './.env.example', // This is new
Expand Down

0 comments on commit 3bf0ada

Please sign in to comment.