Skip to content

Commit

Permalink
Merge pull request #136 from terwer/dev
Browse files Browse the repository at this point in the history
fix: 修复 vercel 样式错乱问题
  • Loading branch information
terwer committed Jun 30, 2023
2 parents 2148c2b + 0bb9ca4 commit cafd0e7
Show file tree
Hide file tree
Showing 5 changed files with 32 additions and 53 deletions.
4 changes: 4 additions & 0 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const staticV = generateDynamicV()

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
experimental: {
inlineSSRStyles: false,
},

// https://nuxt.com/docs/guide/concepts/typescript#nuxttsconfigjson
typescript: {
strict: true,
Expand Down
4 changes: 4 additions & 0 deletions nuxt.node.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const staticV = generateDynamicV()

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
experimental: {
inlineSSRStyles: false,
},

// https://nuxt.com/docs/guide/concepts/typescript#nuxttsconfigjson
typescript: {
strict: true,
Expand Down
4 changes: 4 additions & 0 deletions nuxt.siyuan.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const staticV = generateDynamicV()

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
experimental: {
inlineSSRStyles: false,
},

// https://nuxt.com/docs/guide/concepts/typescript#nuxttsconfigjson
typescript: {
strict: true,
Expand Down
5 changes: 5 additions & 0 deletions nuxt.vercel.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ const staticV = generateDynamicV()

// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
experimental: {
inlineSSRStyles: false,
},

// https://nuxt.com/docs/guide/concepts/typescript#nuxttsconfigjson
typescript: {
strict: true,
Expand Down Expand Up @@ -58,6 +62,7 @@ export default defineNuxtConfig({
themes: ["dark"],
},

// https://github.com/nuxt/nuxt/issues/21840
css: ["~/assets/siyuan/style.styl", "~/assets/siyuan/index.styl"],

app: {
Expand Down
68 changes: 15 additions & 53 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit cafd0e7

@vercel
Copy link

@vercel vercel bot commented on cafd0e7 Jun 30, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.