Skip to content

Commit 3db730c

Browse files
authored
Upgrade deps (#262)
* Upgrade Next.js to v15 * Update deps round 1 * Update deps round 2 * Update deps round 3 * Update deps round 4 * Commit pending changes * Migrate scss to css * Downgrade tailwind to run the migration script * Run tailwind migration, upgrade the package * Migration #2 * Migrate jotai atoms * Add nuqs provider * Fix tailwind import * Fix async component * Add missing reference to css module * Update deps round 5 * Update deps round 6 * Update deps round 7 * Rename the rest of scss files * Fix styles and react-pdf * Add next to 15.3.0
1 parent 646f36c commit 3db730c

File tree

338 files changed

+24375
-20316
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

338 files changed

+24375
-20316
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
KEYCLOAK_ISSUER=https://staging.openbraininstitute.org/auth/realms/SBO
2+
KEYCLOAK_CLIENT_ID=obp-core-web-app-dev
3+
KEYCLOAK_CLIENT_SECRET=dummy-secret
4+
5+
NEXTAUTH_SECRET=dummy-secret-for-dev
6+
7+
NEXT_PUBLIC_ACCOUNTING_BASE_URL=https://staging.openbraininstitute.org/api/accounting
8+
NEXT_PUBLIC_NEXUS_URL=https://staging.openbraininstitute.org/api/nexus/v1
9+
NEXT_PUBLIC_BLUE_NAAS_URL=https://staging.openbraininstitute.org/api/bluenaas
10+
NEXT_PUBLIC_CELL_SVC_BASE_URL=https://staging.openbraininstitute.org/api/circuit
11+
NEXT_PUBLIC_KG_INFERENCE_BASE_URL=https://staging.openbraininstitute.org/api/kg-inference
12+
NEXT_PUBLIC_THUMBNAIL_GENERATION_BASE_URL=https://staging.openbraininstitute.org/api/thumbnail-generation
13+
NEXT_PUBLIC_SYNTHESIS_URL=https://synthesis.sbo.kcp.bbp.epfl.ch/synthesis-with-resources # TODO: change to staging
14+
NEXT_PUBLIC_ME_MODEL_ANALYSIS_WS_URL=wss://8sjpv70kgl.execute-api.us-east-1.amazonaws.com/prod/
15+
NEXT_PUBLIC_VIRTUAL_LAB_API_URL=https://staging.openbraininstitute.org/api/virtual-lab-manager
16+
NEXT_PUBLIC_BBS_ML_BASE_URL=https://staging.openbraininstitute.org/api/literature
17+
18+
NEXT_PUBLIC_MATOMO_URL="https://openbraininstitute.matomo.cloud"
19+
NEXT_PUBLIC_MATOMO_CDN_URL="https://cdn.matomo.cloud/openbraininstitute.matomo.cloud"
20+
NEXT_PUBLIC_MATOMO_SITE_ID="3"
21+
22+
NEXT_PUBLIC_DEPLOYMENT_ENV="staging"
23+
24+
# TODO: remove after redirect is implemented on infra side
25+
PRIMARY_HOSTNAME=localhost:3000
26+
NEXT_PUBLIC_STRIPE_PUBLISHABLE_KEY="pk_test_51QjjHBKGUR5u3ofLgNUOpljnvy27UTTpkhwgsLiwK9xlNjnR7CZfiMjtZWMjgN7GW3eDyzMJ7Z1pIqC9LiwkfQRX00ebb5c9XI"
27+
28+
MAILCHIMP_API_KEY='dummy'
29+
MAILCHIMP_AUDIENCE_ID='dummy'
30+
MAILCHIMP_API_SERVER='dummy'
31+
32+
# There is only one Sanity server, but with two datasets: "staging" and "production"
33+
NEXT_PUBLIC_SANITY_DATASET="staging"
34+
35+
# AI Agent service from Machine Learning team
36+
NEXT_PUBLIC_AI_AGENT_URL="https://staging.openbraininstitute.org/api/agent/"
37+
38+

__tests__/TreeNav/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ function TestNavItem({
5050
}: {
5151
id: string;
5252
title: string;
53-
content: (...args: any[]) => ReactElement;
54-
trigger: (...args: any[]) => ReactElement;
53+
content: (...args: any[]) => ReactElement<any>;
54+
trigger: (...args: any[]) => ReactElement<any>;
5555
}) {
5656
return (
5757
<div>

next-env.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
/// <reference types="next/image-types/global" />
33

44
// NOTE: This file should not be edited
5-
// see https://nextjs.org/docs/app/building-your-application/configuring/typescript for more information.
5+
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

next.config.mjs

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,37 @@ function getVersion() {
2222

2323
/** @type {import('next').NextConfig} */
2424
const nextConfig = {
25+
experimental: {
26+
turbo: {
27+
rules: {
28+
'*.groq': {
29+
loaders: ['raw-loader'],
30+
as: '*.js',
31+
},
32+
'*.vert': {
33+
loaders: ['raw-loader'],
34+
as: '*.js',
35+
},
36+
'*.frag': {
37+
loaders: ['raw-loader'],
38+
as: '*.js',
39+
},
40+
'*.mp4': {
41+
loaders: ['file-loader'],
42+
as: 'asset',
43+
},
44+
'*.pdf': {
45+
loaders: ['file-loader'],
46+
as: 'asset',
47+
},
48+
},
49+
50+
// This is required by react-pdf module. See https://www.npmjs.com/package/react-pdf
51+
resolveAlias: {
52+
canvas: './empty-module.ts',
53+
},
54+
},
55+
},
2556
webpack: (config) => {
2657
config.resolve.alias.canvas = false;
2758
config.resolve.alias.encoding = false;
@@ -48,7 +79,6 @@ const nextConfig = {
4879
basePath,
4980
assetPrefix: basePath ?? undefined,
5081
reactStrictMode: true,
51-
swcMinify: true,
5282
compress: false,
5383
output: 'standalone',
5484
sentry: {

0 commit comments

Comments
 (0)