Skip to content

Commit 3eae5df

Browse files
committed
chore: test disable apiRoute, bundle all languages
1 parent e310762 commit 3eae5df

1 file changed

Lines changed: 3 additions & 19 deletions

File tree

apps/frontend/nuxt.config.ts

Lines changed: 3 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import type { LocaleObject } from '@nuxtjs/i18n'
22
import { localcertKeyPath, localcertPath } from '@local/common/dev/cert'
33
import { getConvexEnvs } from 'backend-convex/_util'
44
import { config } from 'dotenv'
5+
import { type BundledLanguage, bundledLanguagesInfo } from 'shiki/bundle/full'
56
import optimizeExclude from 'vite-plugin-optimize-exclude'
67

78
if (import.meta.env.NODE_ENV === 'development') {
@@ -126,25 +127,8 @@ export default defineNuxtConfig({
126127
mdc: {
127128
highlight: {
128129
wrapperStyle: true,
129-
noApiRoute: true,
130-
langs: [
131-
'bash',
132-
'batch',
133-
'css',
134-
'html',
135-
'js',
136-
'json',
137-
'jsx',
138-
'md',
139-
'mdc',
140-
'py',
141-
'sass',
142-
'terraform',
143-
'ts',
144-
'tsx',
145-
'vue',
146-
'yaml',
147-
],
130+
// noApiRoute: true,
131+
langs: bundledLanguagesInfo.map(l => l.id) as BundledLanguage[],
148132
},
149133
keepComments: true,
150134
},

0 commit comments

Comments
 (0)