Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Commit

Permalink
fix: missing client for devtools
Browse files Browse the repository at this point in the history
  • Loading branch information
Flowko committed Dec 12, 2023
1 parent 4ddf7ed commit 57b5c16
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 13 deletions.
7 changes: 4 additions & 3 deletions client/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { resolve } from 'pathe'
import { defineNuxtConfig } from 'nuxt/config'
import vueEmailModule from '../src/module'

Expand All @@ -8,9 +9,9 @@ export default defineNuxtConfig({
app: {
baseURL: process.env.NODE_ENV === 'development' ? undefined : '/__vue_email__/client',
},
vite: {
build: {
target: 'esnext',
nitro: {
output: {
publicDir: resolve(__dirname, '../dist/client'),
},
},
ui: {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
"@vue-email/compiler": "npm:@vue-email/[email protected]",
"defu": "^6.1.3",
"sirv": "^2.0.3",
"vue-email": "npm:[email protected]28373434.36e5786"
"vue-email": "npm:[email protected]28373522.80083f0"
},
"devDependencies": {
"@nuxt/devtools": "latest",
Expand Down
12 changes: 4 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default defineNuxtModule<ModuleOptions>({
},
async setup (options, nuxt) {
const { resolve } = createResolver(import.meta.url)
const playgroundDir = resolve('../client/dist')
const playgroundDir = resolve('../dist/client')


nuxt.options.runtimeConfig.public.vueEmail = defu(nuxt.options.runtimeConfig.public.vueEmail, options)
Expand Down

0 comments on commit 57b5c16

Please sign in to comment.