feat(docker): prepare portable images with runtime hotel configuration
This commit is contained in:
1 parent
745d0b7247
commit
c4496e710b
28 files changed
+622
-104
No files matched your search
@@ -12,11 +12,7 @@ export async function tryRemoveLocalPhotoFile(url: string): Promise<boolean> {
|
||||
if (/^https?:\/\//i.test(pathname)) {
|
||||
try {
|
||||
const parsed = new URL(pathname);
|
||||
const app = (
|
||||
process.env.APP_URL ||
|
||||
process.env.NEXT_PUBLIC_APP_URL ||
|
||||
""
|
||||
).replace(/\/$/, "");
|
||||
const app = (process.env.APP_URL || "").replace(/\/$/, "");
|
||||
if (!app || !pathname.startsWith(app)) return false;
|
||||
pathname = parsed.pathname;
|
||||
} catch {
|
||||
|
||||
Reference in new issue
Block a user