1
0
Fork 0

fix(fs.dev): Load script the NextJS way

This commit is contained in:
Joost De Cock 2022-01-24 10:09:26 +01:00
parent 38132df519
commit bb6bae13f2

View file

@ -3,6 +3,7 @@ import useApp from 'site/hooks/useApp.js'
import Head from 'next/head'
import HelpUs from 'site/components/help-us.js'
import Link from 'next/link'
import Script from 'next/script'
const HomePage = (props) => {
const app = useApp()
@ -20,7 +21,7 @@ const HomePage = (props) => {
<meta property="og:url" content="https://freesewing.dev/" key='url' />
<meta property="og:locale" content="en_US" key='locale' />
<meta property="og:site_name" content="freesewing.dev" key='site' />
<script src="/sw.js" />
<Script src="/sw.js"></Script>
</Head>
<div className="max-w-screen-md">
<p>