Skip to content

Remove baseUrl from public API, support Nuxt 3+4#3

Merged
RobertBoes merged 2 commits into
mainfrom
chore/remove-base-url
Apr 1, 2026
Merged

Remove baseUrl from public API, support Nuxt 3+4#3
RobertBoes merged 2 commits into
mainfrom
chore/remove-base-url

Conversation

@RobertBoes
Copy link
Copy Markdown
Contributor

Summary

  • Remove baseUrl from all public APIs — FormRelay URL is hardcoded since it's not self-hosted
  • Override via FORMRELAY_API_URL env var at build time for local development
  • Update Nuxt peer dependency to ^3.0.0 || ^4.0.0

Changes

  • FormClientOptions: removed baseUrl
  • UseFormRelayOptions: removed baseUrl
  • <FormRelay> component: removed baseUrl prop
  • Nuxt module config: removed baseUrl
  • New constants.ts in core with env var override
  • Nuxt peerDependencies: ^3.0.0^3.0.0 || ^4.0.0

Test plan

  • cd packages/core && vp test — 61 tests pass
  • cd packages/vue && vp test — 23 tests pass
  • vp lint — no errors
  • vp fmt --check — no formatting issues

The FormRelay API URL is hardcoded since FormRelay isn't self-hosted.
Override via FORMRELAY_API_URL env var at build time for local dev.

Removed baseUrl from: FormClientOptions, UseFormRelayOptions,
FormRelay component props, Nuxt module config, and all runtime config.
@RobertBoes RobertBoes merged commit 1da5dd1 into main Apr 1, 2026
1 check failed
@RobertBoes RobertBoes deleted the chore/remove-base-url branch April 1, 2026 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant