1
Fork 0
mirror of https://github.com/diced/zipline.git synced 2025-04-11 23:31:17 -05:00

there wasn't an export const config for this one

This commit is contained in:
Jay 2025-02-07 16:40:25 -08:00
parent b8e29fe839
commit d63a64cc90
No known key found for this signature in database
GPG key ID: 97C2E533F17AF0EB

View file

@ -10,7 +10,7 @@ import Head from 'next/head';
import Link from 'next/link';
import { useRouter } from 'next/router';
import { useEffect, useState } from 'react';
import zconfig from 'lib/config';
import config from 'lib/config';
export default function EmbeddedFile({
file,
@ -305,12 +305,12 @@ export const getServerSideProps: GetServerSideProps = async (context) => {
if (
JSON.parse(context.req.headers['cf-visitor'] as string).scheme === 'https' ||
proto === 'https' ||
zconfig.core.return_https
config.core.return_https
)
host = `https://${host}`;
else host = `http://${host}`;
} catch (e) {
if (proto === 'https' || zconfig.core.return_https) host = `https://${host}`;
if (proto === 'https' || config.core.return_https) host = `https://${host}`;
else host = `http://${host}`;
}