Skip to content
Snippets Groups Projects
Verified Commit 6d64c86c authored by Miniontoby's avatar Miniontoby :writing_hand_tone1:
Browse files

Fixed some stuff with deployment

parent 3aa0ee11
No related branches found
No related tags found
No related merge requests found
if (!process.env?.PORT) if (!process.env?.IP)
process.env.PORT = '3000'; process.env.IP = process.env?.INTERNAL_IP ?? process.env?.SERVER_IP ?? 'localhost';
if (!process.env?.PORT)
process.env.PORT = process.env?.SERVER_PORT ?? '3000';
if (!process.env?.ORIGIN) if (!process.env?.ORIGIN)
process.env.ORIGIN = `http://localhost:${process.env.PORT}`; process.env.ORIGIN = process.env?.HOSTNAME ?? `http://${process.env.IP}:${process.env.PORT}`;
process.env.PUBLIC_ORIGIN = process.env.ORIGIN;
import { dev } from '$app/environment'; import { dev } from '$app/environment';
import Roles from '$lib/roles'; import Roles from '$lib/roles';
const currentImportMetaURL = new URL(import.meta.url).origin; const currentImportMetaURL = env.PUBLIC_ORIGIN ?? new URL(import.meta.url).origin;
export const url = String(currentImportMetaURL) !== 'null' && currentImportMetaURL !== '' ? currentImportMetaURL : (dev ? 'http://localhost:5173' : 'https://somedomain.com'); export const url = String(currentImportMetaURL) !== 'null' && currentImportMetaURL !== '' ? currentImportMetaURL : (dev ? 'http://localhost:5173' : 'https://somedomain.com');
export const navs = [ export const navs = [
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"ChordPro": ChordSheetJS.ChordProParser, "ChordPro": ChordSheetJS.ChordProParser,
} }
const parser = new parsers['ChordsOverWords'](); const parser = new parsers['ChordPro']();
const songSheet = parser.parse(musicsheet?.file); const songSheet = parser.parse(musicsheet?.file);
const formatter = new ChordSheetJS.TextFormatter(); const formatter = new ChordSheetJS.TextFormatter();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment