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

fix(server): use file extension in import, fix graphql route registering #9984

Merged
merged 3 commits into from
Feb 9, 2024

Conversation

jtoar
Copy link
Contributor

@jtoar jtoar commented Feb 9, 2024

This PR fixes two things related to the server file and the GraphQL function.

  • we have to specify file extensions with await import for relative paths; there was one missing for importing the graphql plugin
  • out of the box the graphql function was registered with double slashes since graphiQLEndpoint defaults to '/graphql' and apiRootPath defaults to '/', resulting in '//graphql'

@jtoar jtoar added the release:fix This PR is a fix label Feb 9, 2024
@jtoar jtoar added this to the v7.0.0 milestone Feb 9, 2024
@jtoar jtoar enabled auto-merge (squash) February 9, 2024 01:16
@jtoar jtoar disabled auto-merge February 9, 2024 01:25
@jtoar jtoar merged commit 9df7377 into main Feb 9, 2024
40 checks passed
@jtoar jtoar deleted the ds-server/fix-await-import branch February 9, 2024 01:25
jtoar pushed a commit that referenced this pull request Feb 9, 2024
…ing (#9984)

This PR fixes two things related to the server file and the GraphQL
function.

- we have to specify file extensions with `await import` for relative
paths; there was one missing for importing the graphql plugin
- out of the box the graphql function was registered with double slashes
since `graphiQLEndpoint` defaults to `'/graphql'` and `apiRootPath`
defaults to `'/'`, resulting in `'//graphql'`
dac09 added a commit to dac09/redwood that referenced this pull request Feb 9, 2024
…d-cookies-dbauth

* 'main' of github.com:redwoodjs/redwood:
  chore: update rsc fixture (redwoodjs#9986)
  fix(server): use file extension in import, fix graphql route registering (redwoodjs#9984)
  chore(deps): update babel monorepo (redwoodjs#9983)
  fix: unpin react types (redwoodjs#9727)
  fix(docker): compose dev and prod (redwoodjs#9982)
  fix(deps): update prisma monorepo to v5.9.1 (redwoodjs#9980)
  fix(cli): use fetch instead of `yarn npm info` (redwoodjs#9975)
  fix(test): Update createServer test to use a different port to normal (redwoodjs#9977)
  fix(docker): corepack permissions fix and style updates (redwoodjs#9976)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix This PR is a fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants