Skip to content

Commit

Permalink
since we're compressing in the reverse proxy, we don't need to in the…
Browse files Browse the repository at this point in the history
… actual process for api
  • Loading branch information
ehanahamed committed Jan 29, 2025
1 parent 86fdd5b commit d94dce5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 159 deletions.
4 changes: 0 additions & 4 deletions api/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import "dotenv/config";
import Fastify from "fastify";
import mercurius from "mercurius";
import fastifyCompress from "@fastify/compress";
import fastifyCors from "@fastify/cors";
import fastifyCookie from "@fastify/cookie";
import fastifyOauth2 from "@fastify/oauth2";
Expand Down Expand Up @@ -64,9 +63,6 @@ const fastify = Fastify({
logger: loggerConfig
})

await fastify.register(
fastifyCompress
);
await fastify.register(fastifyCors, {
origin: CORS_ORIGIN
});
Expand Down
155 changes: 1 addition & 154 deletions api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
"license": "AGPL-3.0-or-later",
"description": "",
"dependencies": {
"@fastify/compress": "^8.0.1",
"@fastify/cookie": "^11.0.1",
"@fastify/cors": "^10.0.1",
"@fastify/oauth2": "^8.1.0",
Expand Down

0 comments on commit d94dce5

Please sign in to comment.