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:
parent
b8e29fe839
commit
d63a64cc90
1 changed files with 3 additions and 3 deletions
|
@ -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}`;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue