Load upload dir from ENV

This commit is contained in:
2024-08-16 14:41:33 +02:00
parent 0842c107e6
commit cbd03de6a3
3 changed files with 17 additions and 3 deletions

View File

@ -1,6 +1,6 @@
// place files you want to import through the `$lib` alias in this folder.
const safePath = (input: string) => input.replace(/\W/g, '');
export const storagePath: string = './uploads';
export const storagePath: string = process.env.STORAGE_PATH;
export default safePath;