Skip to content

Commit

Permalink
change microCMS to Newt
Browse files Browse the repository at this point in the history
  • Loading branch information
shim369 committed Sep 19, 2023
1 parent 4fd6d18 commit 0b72dd5
Show file tree
Hide file tree
Showing 13 changed files with 1,253 additions and 1,153 deletions.
43 changes: 35 additions & 8 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,6 @@
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
modules: [
['nuxt-microcms-module', {
serviceDomain: process.env.MICROCMS_SERVICE_DOMAIN,
apiKey: process.env.MICROCMS_API_KEY,
}]
],
devtools: { enabled: true },
// devtools: { enabled: true },
build: {
transpile: ['gsap']
},
Expand All @@ -15,7 +9,40 @@ export default defineNuxtConfig({
htmlAttrs: {
lang: 'ja'
},
},
link: [
{
rel: 'preconnect',
href: 'https://fonts.googleapis.com',
crossorigin: 'anonymous'
},
{
rel: 'preload',
as: 'font',
type: 'font/woff2',
href: 'https://fonts.gstatic.com/s/materialicons/v140/flUhRq6tzZclQEJ-Vdg-IuiaDsNcIhQ8tQ.woff2',
crossorigin: 'anonymous'
},
{
rel: 'preload',
as: 'style',
href: 'https://fonts.googleapis.com/icon?family=Material+Icons&display=swap'
},
{
rel: 'stylesheet',
href: 'https://fonts.googleapis.com/icon?family=Material+Icons&display=swap',
media: 'print',
onload: "this.media='all'"
}
]
}
},
runtimeConfig: {
public: {
newt: {
spaceUid: process.env.NEWT_SPACE_UID,
token: process.env.NEWT_CDN_API_TOKEN
}
}
},
typescript: {
typeCheck: true
Expand Down
Loading

0 comments on commit 0b72dd5

Please sign in to comment.