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

baseUrl not present after running export command #41

Closed
stursby opened this issue Mar 21, 2024 · 1 comment
Closed

baseUrl not present after running export command #41

stursby opened this issue Mar 21, 2024 · 1 comment

Comments

@stursby
Copy link

stursby commented Mar 21, 2024

I have the following command to compile the .vue emails into HTML, however the baseUrl is gone after exporting.

Here's the relevant parts of each component

Email

<EImg
  src="/images/logo.png"
  width="100"
  height="33"
  alt="logo"
  :style="logo"
/>

Nuxt Config

// Email
vueEmail: {
  baseUrl: 'https://example.com'
}

package.json

{
  "scripts": {
    "email": "bunx vue-email export --dir emails --out supabase/templates --pretty"
  }
}

When previewing the Email w/ Nuxt Dev Tools, the Image URL works great:

image

However, after I run the build command, the baseUrl is omitted:

image

Any help would be much appreciated!!

PS -- What I eventually would like to do is set the baseUrl to an ENV variable to so it works both locally and in production!

// Email
vueEmail: {
  baseUrl: process.env.BASE_URL,
}

Thanks for the awesome library BTW! 💯

@Flowko Flowko mentioned this issue Jun 4, 2024
5 tasks
@Flowko
Copy link
Member

Flowko commented Jun 22, 2024

we just merged a new project rewrite, please do check the docs and the updated logic https://vuemail.net/

@Flowko Flowko closed this as completed Jun 22, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants