diff --git a/pages/_document.js b/pages/_document.js index 3400d049..fbdad13b 100644 --- a/pages/_document.js +++ b/pages/_document.js @@ -1,11 +1,21 @@ import Document, { Html, Head, Main, NextScript } from 'next/document' +const publicPrefix = process.env.NODE_ENV === 'development' ? '' : 'https://a.stacker.news' class MyDocument extends Document { render () { return (
- + + diff --git a/pages/api/capture/[[...path]].js b/pages/api/capture/[[...path]].js index 4921bc1b..75f8fea4 100644 --- a/pages/api/capture/[[...path]].js +++ b/pages/api/capture/[[...path]].js @@ -21,7 +21,7 @@ export default async function handler (req, res) { const searchQ = req.query.q ? `?q=${req.query.q}` : '' const s3PathPUT = s3PathPrefix + (joinedPath === '.' ? '_' : joinedPath) + searchQ const s3PathGET = s3PathPrefix + (joinedPath === '.' ? '_' : joinedPath) + encodeS3URI(searchQ) - const url = process.env.SELF_URL + '/' + joinedPath + searchQ + const url = process.env.PUBLIC_URL + '/' + joinedPath + searchQ const aws = new AWS.S3({apiVersion: '2006-03-01'}) // check to see if we have a recent version of the object diff --git a/styles/globals.scss b/styles/globals.scss index fbf0f991..48558930 100644 --- a/styles/globals.scss +++ b/styles/globals.scss @@ -53,11 +53,6 @@ $tooltip-bg: #5c8001; @import "~bootstrap/scss/bootstrap"; -@font-face { - font-family: lightning; - src: url(/Lightningvolt-xoqm.ttf); -} - @media screen and (min-width: 767px) { .table-sm th, .table-sm td { padding: .3rem .75rem;