feat: wire global runtime injection and playground
This commit is contained in:
11
test/fixtures/basic/nuxt.config.ts
vendored
11
test/fixtures/basic/nuxt.config.ts
vendored
@@ -1,7 +1,14 @@
|
||||
import MyModule from '../../../src/module'
|
||||
import NuxtCan from '../../../src/module'
|
||||
|
||||
export default defineNuxtConfig({
|
||||
modules: [
|
||||
MyModule,
|
||||
NuxtCan,
|
||||
],
|
||||
nuxtCan: {
|
||||
permissions: {
|
||||
employee: ['view', 'edit', 'delete'],
|
||||
contract: ['create'],
|
||||
},
|
||||
canFunctionImport: '~/permissions/__can__',
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user