Skip to content

Commit 626d29d

Browse files
committed
chore(playground): revert aliases
1 parent 51d7735 commit 626d29d

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

playgrounds/nuxt3/nuxt.config.ts

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,20 @@
1+
import { dirname, resolve } from 'path'
2+
import { fileURLToPath } from 'url'
13
import { defineNuxtConfig } from 'nuxt'
24

5+
const __dirname = dirname(fileURLToPath(import.meta.url))
6+
37
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config
4-
export default defineNuxtConfig(async () => {
5-
return {
6-
modules: [
7-
'nuxt-windicss',
8-
'nuxt-schema-org',
9-
],
10-
schemaOrg: {
11-
debug: true,
12-
canonicalHost: 'https://harlanshamburgers.com/',
13-
},
14-
}
8+
export default defineNuxtConfig({
9+
alias: {
10+
'nuxt-schema-org': resolve(__dirname, '../../packages/nuxt/src/module.ts'),
11+
},
12+
modules: [
13+
'nuxt-windicss',
14+
'nuxt-schema-org',
15+
],
16+
schemaOrg: {
17+
debug: true,
18+
canonicalHost: 'https://harlanshamburgers.com/',
19+
},
1520
})

0 commit comments

Comments
 (0)