Merged in chore/replace-graphql-tag/loader (pull request #3096)
Use turbopack for dev builds. Remove graphql-tag/loader, replaced by gql`` tag literals instead. Approved-by: Linus Flood
This commit is contained in:
@@ -92,17 +92,6 @@ 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
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "next build",
|
||||
"dev": "NODE_OPTIONS=--openssl-legacy-provider PORT=3000 NEXT_PUBLIC_PORT=3000 next dev",
|
||||
"dev": "NODE_OPTIONS=--openssl-legacy-provider PORT=3000 NEXT_PUBLIC_PORT=3000 next dev --turbo",
|
||||
"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",
|
||||
|
||||
@@ -4,7 +4,8 @@ import { defineConfig } from "vitest/config"
|
||||
|
||||
export default defineConfig({
|
||||
plugins: [
|
||||
tsconfigPaths(),
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
tsconfigPaths() as any,
|
||||
react({
|
||||
babel: {
|
||||
plugins: [
|
||||
|
||||
Reference in New Issue
Block a user