Skip to content

Commit

Permalink
removes dotenv
Browse files Browse the repository at this point in the history
  • Loading branch information
sdwalker62 committed May 5, 2024
1 parent 6118fcb commit 1976811
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions frontend/src/routes/docs/+layout.server.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
import dirTree from 'directory-tree';
import dotenv from 'dotenv';
import { DOCS_PATH } from '$env/static/private';
import type { LayoutServerLoad } from './$types.js';

export const load: LayoutServerLoad = async () => {
dotenv.config();
if (process.env.DOCS_PATH) {
console.log(process.env.DOCS_PATH);
const docsPath = process.env.DOCS_PATH;
const fileNames = dirTree(docsPath, { exclude: /.git/ });
if (DOCS_PATH) {
const fileNames = dirTree(DOCS_PATH, { exclude: /.git/ });

return {
tree: JSON.stringify(fileNames, null, 2)
Expand Down

0 comments on commit 1976811

Please sign in to comment.