Merge pull request #8 from Nona-Creative/fix/assets-in-production

Fix/assets in production
This commit is contained in:
James Gareth Smith 2018-07-09 13:57:54 +02:00 committed by GitHub
commit ac32c86b62
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 9 deletions

3
.gitignore vendored
View File

@ -1,4 +1,5 @@
/out
.next
node_modules
.DS_Store
.DS_Store
yarn.lock

View File

@ -1,11 +1,11 @@
@font-face {
font-family: 'bebas_neuebold';
src: url('/static/fonts/bebasneue_bold-webfont.eot');
src: url('/static/fonts/bebasneue_bold-webfont.eot?#iefix') format('embedded-opentype'),
url('/static/fonts/bebasneue_bold-webfont.woff2') format('woff2'),
url('/static/fonts/bebasneue_bold-webfont.woff') format('woff'),
url('/static/fonts/bebasneue_bold-webfont.ttf') format('truetype'),
url('/static/fonts/bebasneue_bold-webfont.svg#bebas_neuebold') format('svg');
src: url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.eot');
src: url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.eot?#iefix') format('embedded-opentype'),
url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.woff2') format('woff2'),
url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.woff') format('woff'),
url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.ttf') format('truetype'),
url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.svg#bebas_neuebold') format('svg');
font-weight: normal;
font-style: normal;
}

View File

@ -1,6 +1,10 @@
const withSass = require('@zeit/next-sass')
const withSass = require('@zeit/next-sass');
const dev = process && process.env && process.env.NODE_ENV === 'development';
module.exports =
withSass({
assetPrefix: dev ? '' : '/nona-creative.github.io-ETHprize',
exportPathMap: function(defaultPathMap) {
return {
'/': { page: '/' }

View File

@ -8,7 +8,7 @@ export default class MyDocument extends Document {
<Head>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="_next/static/style.css" />
<link rel="stylesheet" type="text/css" charset="UTF-8" href="//cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" />
<link rel="stylesheet" type="text/css" charSet="UTF-8" href="//cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick.min.css" />
<link rel="stylesheet" type="text/css" href="//cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" />
<link href="//fonts.googleapis.com/css?family=Roboto+Mono:400,700" rel="stylesheet" />
</Head>