Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(nuxt): add alias to enable import in server api #918

Conversation

vacijj
Copy link
Contributor

@vacijj vacijj commented Mar 9, 2025

Summary

In order to resolve the nuxt module in the server api (nitro) it is required to register an alias as decribed in #909 (comment).

Closes #909

Testing

I tested the changes within an existing project locally.

Checklist

  • .changeset - not sure
  • unit tests - N/A
  • integration tests - N/A
  • necessary TSDoc comments

Copy link
Contributor

@wangsijie wangsijie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution, can you add some example usages in playground?

@vacijj
Copy link
Contributor Author

vacijj commented Mar 10, 2025

@wangsijie there is an example in the PR already. That is the same as the provided in the docs. Do you want it to be changed? This one works well.

@wangsijie
Copy link
Contributor

@wangsijie there is an example in the PR already. That is the same as the provided in the docs. Do you want it to be changed? This one works well.

No need to change, I can see it now. One last step, can you please sign your commit and force push the new commit?

@vacijj vacijj force-pushed the feat-nuxt-add-alias-to-enable-import-in-server-api branch from fab3bc1 to a9313d6 Compare March 12, 2025 20:45
@vacijj
Copy link
Contributor Author

vacijj commented Mar 12, 2025

No need to change, I can see it now. One last step, can you please sign your commit and force push the new commit?

@wangsijie the commit is signed now 🙏

@wangsijie wangsijie merged commit 679c132 into logto-io:master Mar 13, 2025
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

bug: Rollup Error in Nuxt while importing logtoEventHandler from @logto/nuxt
2 participants