Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions frontend/cache-handler.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { CacheHandler } from "@neshca/cache-handler";
import createLruHandler from "@neshca/cache-handler/local-lru";
import createRedisHandler from "@neshca/cache-handler/redis-strings";
import { CacheHandler } from "@fortedigital/nextjs-cache-handler";
import createLruHandler from "@fortedigital/nextjs-cache-handler/local-lru";
import createRedisHandler from "@fortedigital/nextjs-cache-handler/redis-strings";
import { createClient } from "redis";

CacheHandler.onCreation(async () => {
Expand Down Expand Up @@ -50,7 +50,7 @@ CacheHandler.onCreation(async () => {
}
}

/** @type {import("@neshca/cache-handler").Handler | null} */
/** @type {import("@fortedigital/nextjs-cache-handler").Handler | null} */
let handler;

if (client?.isReady) {
Expand Down
24 changes: 0 additions & 24 deletions frontend/jest.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions frontend/jest.global.setup.js

This file was deleted.

1 change: 0 additions & 1 deletion frontend/jest.setup.js

This file was deleted.

14 changes: 5 additions & 9 deletions frontend/next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ const { withSentryConfig } = require("@sentry/nextjs");
const {
CONFERENCE_CODE,
API_URL,
API_TOKEN,
NEXT_PUBLIC_VERCEL_URL,
API_URL_SERVER,
CMS_HOSTNAME,
Expand Down Expand Up @@ -120,9 +119,6 @@ const nextConfig = {

return rewrites;
},
serverRuntimeConfig: {
API_TOKEN: API_TOKEN,
},
env: {
API_URL: API_URL,
conferenceCode: CONFERENCE_CODE || "pycon-demo",
Expand All @@ -134,11 +130,11 @@ const nextConfig = {
: "http://localhost:3000/",
},
images: {
domains: [
"pastaporto-cdn.pycon.it",
"cdn.pycon.it",
"localhost",
"pycon-backend",
remotePatterns: [
{ hostname: "pastaporto-cdn.pycon.it" },
{ hostname: "cdn.pycon.it" },
{ hostname: "localhost" },
{ hostname: "pycon-backend" },
],
},
};
Expand Down
44 changes: 10 additions & 34 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@
"build": "npm run codegen && next build",
"start": "next start",
"codegen": "graphql-codegen -r dotenv/config -c codegen.yml",
"codegen:watch": "pnpm run codegen --watch",
"test": "jest src/"
"codegen:watch": "pnpm run codegen --watch"
},
"dependencies": {
"@apollo/client": "^3.14.1",
"@fortedigital/nextjs-cache-handler": "^3.2.0",
"@graphql-codegen/add": "^5.0.3",
"@graphql-codegen/cli": "^2.16.5",
"@graphql-codegen/fragment-matcher": "^3.3.3",
Expand All @@ -23,12 +23,9 @@
"@graphql-codegen/typescript": "^2.8.8",
"@graphql-codegen/typescript-operations": "^2.5.13",
"@graphql-codegen/typescript-react-apollo": "^4.4.2",
"@neshca/cache-handler": "^1.9.0",
"@python-italia/pycon-styleguide": "0.1.210",
"@sentry/nextjs": "^9.47.1",
"@vercel/analytics": "^1.6.1",
"@vercel/og": "^0.6.8",
"@vercel/speed-insights": "^1.3.1",
"@vercel/og": "^0.11.1",
"@xstate/react": "^3.2.2",
"clsx": "^1.2.1",
"concurrently": "^9.2.1",
Expand All @@ -41,55 +38,34 @@
"graphql": "^16.14.0",
"graphql-tag": "^2.12.6",
"marksy": "^8.0.0",
"moment": "^2.30.1",
"next": "16.0.7",
"next": "16.2.9",
"next-cookies": "^2.0.3",
"pdfkit": "^0.15.2",
"react": "19.0.0",
"react-dnd": "^11.1.3",
"react-dnd-html5-backend": "^11.1.3",
"react-dom": "19.0.0",
"react": "19.2.7",
"react-dom": "19.2.7",
"react-hook-form": "^7.76.1",
"react-intl": "^6.8.9",
"react-intl-formatted-duration": "^4.0.0",
"react-qr-code": "^2.0.21",
"react-qr-code": "^2.2.0",
"react-select": "^5.10.2",
"react-use-form-state": "^0.13.2",
"react-use-sync-scroll": "^0.1.0",
"react-wrap-balancer": "^1.1.1",
"redis": "^4.7.1",
"styled-system": "^5.1.5",
"svg-to-pdfkit": "^0.1.8",
"redis": "^6.0.0",
"xstate": "^4.38.3",
"yup": "^0.29.3"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@python-italia/eslint-config": "^1.0.13",
"@tailwindcss/typography": "^0.5.19",
"@testing-library/dom": "^8.20.1",
"@testing-library/jest-dom": "^5.17.0",
"@testing-library/react": "^14.3.1",
"@testing-library/user-event": "^13.5.0",
"@trivago/prettier-plugin-sort-imports": "^4.3.0",
"@types/jest": "^29.5.14",
"@types/node": "^14.18.63",
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2",
"@types/testing-library__jest-dom": "^5.14.9",
"@types/react": "19.2.17",
"@types/react-dom": "19.2.3",
"@xstate/inspect": "^0.8.0",
"autoprefixer": "^10.5.0",
"jest": "^29.7.0",
"postcss": "^8.5.15",
"tailwindcss": "^3.4.19",
"tailwindcss-blend-mode": "^1.0.0",
"ts-jest": "^27.1.5",
"typescript": "^5.9.3"
},
"pnpm": {
"overrides": {
"@types/react": "19.0.1",
"@types/react-dom": "19.0.2"
}
}
}
Loading