mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-10 20:52:42 +01:00
🐛 fix .env file not loading
This commit is contained in:
parent
e4fc61dc34
commit
c845d19226
741
package-lock.json
generated
741
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -2,7 +2,8 @@
|
|||||||
"name": "@fosscord/cdn",
|
"name": "@fosscord/cdn",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "cdn for discord clone",
|
"description": "cdn for discord clone",
|
||||||
"main": "index.js",
|
"main": "dist/index.js",
|
||||||
|
"types": "dist/index.d.ts",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"test": "echo \"Error: no test specified\" && exit 1",
|
"test": "echo \"Error: no test specified\" && exit 1",
|
||||||
"build": "tsc -b .",
|
"build": "tsc -b .",
|
||||||
@ -30,7 +31,7 @@
|
|||||||
"file-type": "^16.5.0",
|
"file-type": "^16.5.0",
|
||||||
"image-size": "^1.0.0",
|
"image-size": "^1.0.0",
|
||||||
"lambert-db": "^1.2.3",
|
"lambert-db": "^1.2.3",
|
||||||
"lambert-server": "^1.2.4",
|
"lambert-server": "^1.2.5",
|
||||||
"missing-native-js-functions": "^1.0.8",
|
"missing-native-js-functions": "^1.0.8",
|
||||||
"multer": "^1.4.2",
|
"multer": "^1.4.2",
|
||||||
"node-fetch": "^2.6.1",
|
"node-fetch": "^2.6.1",
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { CDNServer } from "./Server";
|
|
||||||
import dotenv from "dotenv";
|
import dotenv from "dotenv";
|
||||||
dotenv.config();
|
dotenv.config();
|
||||||
|
|
||||||
|
import { CDNServer } from "./Server";
|
||||||
|
|
||||||
if (process.env.STORAGE_LOCATION) {
|
if (process.env.STORAGE_LOCATION) {
|
||||||
if (!process.env.STORAGE_LOCATION.startsWith("/")) {
|
if (!process.env.STORAGE_LOCATION.startsWith("/")) {
|
||||||
process.env.STORAGE_LOCATION = __dirname + "/../" + process.env.STORAGE_LOCATION;
|
process.env.STORAGE_LOCATION = __dirname + "/../" + process.env.STORAGE_LOCATION;
|
||||||
|
Loading…
Reference in New Issue
Block a user