Skip to content

Commit

Permalink
fix: fix runtime config types
Browse files Browse the repository at this point in the history
  • Loading branch information
adenvt committed Sep 22, 2024
1 parent caa889a commit 0250aa8
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ jobs:
- name: Install Deps
run: yarn install --immutable

- name: Run Build
run: yarn dev:prepare && yarn build

- name: Run Test
run: yarn test

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
"dist"
],
"scripts": {
"prepack": "nuxt-module-build build",
"prepack": "yarn build",
"build": "nuxt-module-build build",
"dev": "nuxi dev playground",
"dev:build": "nuxi build playground",
"dev:prepare": "nuxt-module-build build --stub && nuxi prepare playground",
Expand Down
10 changes: 5 additions & 5 deletions src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,16 @@ export interface ModuleOptions {
selfhostPath?: string,
}

export interface ModulePrivateRuntimeConfig {
export interface ModuleRuntimeConfig {
nupolyon: {
features: string[],
},
}

export interface ModuleRuntimeConfig {
nuauth: {
export interface ModulePublicRuntimeConfig {
nupolyon: {
src: string,
isSelfHost: true,
isSelfHost: boolean,
},
}

Expand Down Expand Up @@ -83,7 +83,7 @@ export default defineNuxtModule<ModuleOptions>({
addServerHandler({
method : 'get',
route : options.selfhostPath,
handler: resolver.resolve('./runtime/route/selfhost'),
handler: resolver.resolve('./runtime/server/route/selfhost'),
})
}

Expand Down

0 comments on commit 0250aa8

Please sign in to comment.