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(api-server): Use createServer in all cases, to make fastify config consistent #11176

Merged
merged 4 commits into from
Aug 12, 2024

Conversation

dac09
Copy link
Collaborator

@dac09 dac09 commented Aug 9, 2024

This PR removes all the cases where we use createFastifyInstance for the api server, and replaces it with createServer.

This makes sure that the API server config is always consistent - whether you use a server file or not.

The cases where I've tested:

  • yarn rw dev
  • yarn rw serve
  • yarn rw serve api
  • yarn rw-server

.... missing anything?

@dac09 dac09 added the release:fix This PR is a fix label Aug 9, 2024
@dac09 dac09 added this to the next-release milestone Aug 9, 2024
@dac09 dac09 added release:breaking This PR is a breaking change and removed release:fix This PR is a fix labels Aug 12, 2024
@dac09 dac09 self-assigned this Aug 12, 2024
@dac09
Copy link
Collaborator Author

dac09 commented Aug 12, 2024

Josh noted that the PR removes support for server.config.js (because createServer does not use it) - which makes this a breaking change.

I'll wait to merge this till I understand what our release plan is.

@dac09 dac09 enabled auto-merge (squash) August 12, 2024 14:32
@dac09 dac09 merged commit 7ad9836 into redwoodjs:main Aug 12, 2024
46 checks passed
dac09 added a commit to dac09/redwood that referenced this pull request Aug 14, 2024
…pload-link

* 'main' of github.com:redwoodjs/redwood: (56 commits)
  chore(deps): update babel monorepo (redwoodjs#11190)
  fix(deps): update dependency jscodeshift to v17 (redwoodjs#11233)
  chore(deps): update babel monorepo  (redwoodjs#11228)
  chore(deps): update dependency @clerk/types to v3.65.3 (redwoodjs#11230)
  fix(deps): update dependency vite-plugin-cjs-interop to v2.1.2 (redwoodjs#11224)
  fix(deps): update graphql-tools monorepo (redwoodjs#11232)
  chore(deps): update dependency @clerk/clerk-react to v4.32.3 (redwoodjs#11229)
  fix(deps): update dependency @clerk/clerk-sdk-node to v4.13.21 (redwoodjs#11231)
  fix(deps): update dependency cheerio to v1.0.0 (redwoodjs#11218)
  chore(deps): update yarn to v4.4.0 (redwoodjs#11227)
  fix(deps): update dependency core-js to v3.38.0 (redwoodjs#11226)
  chore(deps): update eslint monorepo to v9.9.0 (redwoodjs#11202)
  fix(api-server): Use createServer in all cases, to make fastify config consistent (redwoodjs#11176)
  chore(deps): update dependency tsx to v4.17.0 (redwoodjs#11199)
  chore(deps): update dependency @types/vscode to v1.92.0 (redwoodjs#11193)
  fix(deps): update dependency @graphql-yoga/plugin-defer-stream to v3.6.3 (redwoodjs#11211)
  fix(deps): update dependency @graphql-yoga/plugin-persisted-operations to v3.6.3 (redwoodjs#11213)
  chore(deps): update dependency eslint-plugin-perfectionist to v3.1.3 (redwoodjs#11195)
  chore(deps): update dependency eslint-plugin-jsdoc to v48.11.0 (redwoodjs#11194)
  chore(deps): update dependency @playwright/test to v1.46.0 (redwoodjs#11191)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:breaking This PR is a breaking change
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants