feat: wire global runtime injection and playground

This commit is contained in:
stanig2106
2025-11-14 06:15:33 +01:00
parent 534bc39197
commit f12bc0ce85
18 changed files with 516 additions and 54 deletions

View File

@@ -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__',
},
})