fix: use https protocol in next config
This commit is contained in:
@@ -5,7 +5,7 @@ export function buildFileUrl(
|
||||
collectionId: string,
|
||||
recordId: string,
|
||||
filename: string,
|
||||
baseUrl: string = process.env.NEXT_PUBLIC_PB_URL ?? 'http://127.0.0.1:8090',
|
||||
baseUrl: string = process.env.PB_PUBLIC_URL ?? 'http://127.0.0.1:8090',
|
||||
): string {
|
||||
return `${baseUrl}/api/files/${collectionId}/${recordId}/${filename}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user