Fix config

This commit is contained in:
rift 2024-08-21 00:07:18 -05:00
parent 69a86b5a14
commit e0805868a6
2 changed files with 4 additions and 2 deletions

View file

@ -6,8 +6,9 @@ import { Sequelize, DataTypes } from "sequelize";
import { fileURLToPath } from "url";
import { handler as ssrHandler } from "./dist/server/entry.mjs";
import multer from "multer";
import config from "./config.json" assert { type: "json" };
import fs from "fs";
const config = JSON.parse(fs.readFileSync("config.json", "utf8"));
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const app = express();

View file

@ -1,8 +1,9 @@
// This is a test file to upload files to the Nebula server
import { FormData, File } from "formdata-node";
import { fileFromPath } from "formdata-node/file-from-path";
import config from "./config.json" assert { type: "json" };
import fs from "fs";
const config = JSON.parse(fs.readFileSync("config.json", "utf8"));
const form = new FormData();
// const file = new File(["My hovercraft is full of eels"], "example.txt");