Merge pull request #8 from Nona-Creative/fix/assets-in-production
Fix/assets in production
This commit is contained in:
commit
ac32c86b62
|
@ -1,4 +1,5 @@
|
||||||
/out
|
/out
|
||||||
.next
|
.next
|
||||||
node_modules
|
node_modules
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
yarn.lock
|
|
@ -1,11 +1,11 @@
|
||||||
@font-face {
|
@font-face {
|
||||||
font-family: 'bebas_neuebold';
|
font-family: 'bebas_neuebold';
|
||||||
src: url('/static/fonts/bebasneue_bold-webfont.eot');
|
src: url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.eot');
|
||||||
src: url('/static/fonts/bebasneue_bold-webfont.eot?#iefix') format('embedded-opentype'),
|
src: url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.eot?#iefix') format('embedded-opentype'),
|
||||||
url('/static/fonts/bebasneue_bold-webfont.woff2') format('woff2'),
|
url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.woff2') format('woff2'),
|
||||||
url('/static/fonts/bebasneue_bold-webfont.woff') format('woff'),
|
url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.woff') format('woff'),
|
||||||
url('/static/fonts/bebasneue_bold-webfont.ttf') format('truetype'),
|
url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.ttf') format('truetype'),
|
||||||
url('/static/fonts/bebasneue_bold-webfont.svg#bebas_neuebold') format('svg');
|
url('/nona-creative.github.io-ETHprize/static/fonts/bebasneue_bold-webfont.svg#bebas_neuebold') format('svg');
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
font-style: normal;
|
font-style: normal;
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 =
|
module.exports =
|
||||||
withSass({
|
withSass({
|
||||||
|
assetPrefix: dev ? '' : '/nona-creative.github.io-ETHprize',
|
||||||
exportPathMap: function(defaultPathMap) {
|
exportPathMap: function(defaultPathMap) {
|
||||||
return {
|
return {
|
||||||
'/': { page: '/' }
|
'/': { page: '/' }
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default class MyDocument extends Document {
|
||||||
<Head>
|
<Head>
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<link rel="stylesheet" href="_next/static/style.css" />
|
<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 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" />
|
<link href="//fonts.googleapis.com/css?family=Roboto+Mono:400,700" rel="stylesheet" />
|
||||||
</Head>
|
</Head>
|
||||||
|
|
Loading…
Reference in New Issue