Merged in revert-gql (pull request #3104)

Revert gql

* Revert "Merged in fix/system-fragment (pull request #3102)"

This reverts commit 0d479eb337.

* Revert "Merged in chore/replace-graphql-tag/loader (pull request #3096)"

This reverts commit e9bd159e98.
This commit is contained in:
Linus Flood
2025-11-07 13:13:28 +00:00
parent cab85f3ffd
commit 5770dcdd9c
291 changed files with 8000 additions and 11733 deletions

View File

@@ -27,6 +27,16 @@ const nextConfig: NextConfig = {
],
],
},
webpack: function (config) {
config.module.rules.push({
test: /\.(graphql|gql)/,
exclude: /node_modules/,
loader: "graphql-tag/loader",
})
return config
},
}
export default Sentry.withSentryConfig(nextConfig, {

View File

@@ -4,7 +4,7 @@
"private": true,
"type": "module",
"scripts": {
"dev": "NODE_OPTIONS=--openssl-legacy-provider PORT=3001 NEXT_PUBLIC_PORT=3001 next dev --turbo",
"dev": "NODE_OPTIONS=--openssl-legacy-provider PORT=3001 NEXT_PUBLIC_PORT=3001 next dev",
"build": "next build",
"start": "node .next/standalone/server.js",
"lint": "next lint --max-warnings 0 && tsgo --noEmit",

View File

@@ -92,6 +92,17 @@ const nextConfig = {
output: "standalone",
// eslint-disable-next-line @typescript-eslint/no-explicit-any
webpack: function (config: any) {
config.module.rules.push({
test: /\.(graphql|gql)/,
exclude: /node_modules/,
loader: "graphql-tag/loader",
})
return config
},
// https://nextjs.org/docs/app/api-reference/next-config-js/redirects#header-cookie-and-query-matching
redirects() {
// Param checks needs to be split as Next.js handles everything

View File

@@ -5,7 +5,7 @@
"type": "module",
"scripts": {
"build": "next build",
"dev": "NODE_OPTIONS=--openssl-legacy-provider PORT=3000 NEXT_PUBLIC_PORT=3000 next dev --turbo",
"dev": "NODE_OPTIONS=--openssl-legacy-provider PORT=3000 NEXT_PUBLIC_PORT=3000 next dev",
"lint": "yarn clean && next lint --max-warnings 0 && tsc",
"lint:fix": "yarn clean && next lint --fix --max-warnings 0 && tsc",
"start": "node .next/standalone/server.js",

View File

@@ -4,8 +4,7 @@ import { defineConfig } from "vitest/config"
export default defineConfig({
plugins: [
// eslint-disable-next-line @typescript-eslint/no-explicit-any
tsconfigPaths() as any,
tsconfigPaths(),
react({
babel: {
plugins: [