Skip to content

Running plugin with Vite Serve defaults to dev mode URLs #1

Closed Answered by cshawaus
xerubia asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @BANK3Y,

This appears to be a small oversight on my part by which I have hard-coded the AEM port to 4602 by default rather than 4502.

https://github.com/aem-vite/vite-aem-plugin/blob/main/src/index.ts#L10

The solution, for now, would be to explicitly pass your AEM port into the plugin configuration.
https://github.com/aem-vite/vite-aem-plugin/blob/main/src/types.ts#L20

import { viteForAem } from '@aem-vite/vite-aem-plugin';

export default defineConfig(() => ({
  plugins: [
    viteForAem({
      // ...other options
      aem: {
        host: 'localhost'
        port: 4502,
      },
    }),
  ],
}));

I'll get this fixed soon and the aem property documented in https://www.aemvite.dev/gu…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cshawaus
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants