mirror of
https://github.com/NebulaServices/Nebula.git
synced 2025-05-13 03:50:02 -04:00
Fix config
This commit is contained in:
parent
69a86b5a14
commit
e0805868a6
2 changed files with 4 additions and 2 deletions
|
@ -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();
|
||||
|
|
|
@ -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");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue