Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor/prefer after for analytics #1671

Open
wants to merge 24 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
85fbc6c
chore: upgrade next, react and some other deps
Nov 28, 2024
be012a2
chore: update breaking changes API accordingly
Nov 28, 2024
b70007f
refactor: adjust params fetching according to new API
Nov 28, 2024
46c0ffd
chore: add react overrides
Nov 28, 2024
30bc07b
refactor: make layouts sync again
Nov 28, 2024
ed3e966
chore: adjust nextconfig and other stuff
Nov 29, 2024
00a8104
chore: adjust libphonenumber issue
Nov 29, 2024
836629b
chore: adjust libphonenumber return
Nov 29, 2024
df745b2
refactor: change layouts to async to await for params
Nov 29, 2024
1d15c63
chore: adjust typings
Nov 29, 2024
72a4c7c
refactor: adjust actionCreateCoinbaseCommerceCharge response naming
Dec 2, 2024
9154091
refactor: add extra info in the parsePhoneNumber comment
Dec 2, 2024
1b571ac
chore: change auto update minor
Dec 4, 2024
de5210b
chore: upgrade to react 19 stable
Dec 6, 2024
e9d6daf
chore: bump react
Dec 10, 2024
cb5cd9d
Merge branch 'main' of github.com:Stand-With-Crypto/swc-web into chor…
Dec 10, 2024
463f314
feat: add onRequestError sentry integration on next instrumentation
Dec 12, 2024
8085c7c
Merge branch 'main' of github.com:Stand-With-Crypto/swc-web into chor…
Dec 12, 2024
a489106
refactor: adjust route-segment-config for some pages
Dec 12, 2024
0ae7109
Merge branch 'main' of github.com:Stand-With-Crypto/swc-web into chor…
Dec 12, 2024
70ecb5e
Merge branch 'main' of github.com:Stand-With-Crypto/swc-web into chor…
Dec 13, 2024
9b57023
refactor: adjust stuff after review
Dec 16, 2024
7029242
Merge branch 'main' of github.com:Stand-With-Crypto/swc-web into chor…
Dec 16, 2024
19fc703
refactor: use after function over waitUntil for analytics
Dec 17, 2024
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
2 changes: 1 addition & 1 deletion docs/Add a new user action.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ export function UserActionFormActionNameSkeleton() {
```javascript
/// page.tsx

export const revalidate = SECONDS_DURATION.HOUR
export const revalidate = 900 // 15 minutes
export const dynamic = 'error'

export default function UserActionActionNameDeepLink({ params }: PageProps) {
Expand Down
12 changes: 7 additions & 5 deletions next.config.js → next.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
const { withSentryConfig } = require('@sentry/nextjs')
const withBundleAnalyzer = require('@next/bundle-analyzer')({
import bundleAnalyzer from '@next/bundle-analyzer'
import { withSentryConfig } from '@sentry/nextjs'
import type { NextConfig } from 'next'

const withBundleAnalyzer = bundleAnalyzer({
enabled: process.env.ANALYZE === 'true',
})

Expand Down Expand Up @@ -199,10 +202,9 @@ const V1_ACTION_REDIRECTS = ACTION_REDIRECTS.map(({ destination, queryKey, query
],
}))

/** @type {import('next').NextConfig} */
const nextConfig = {
const nextConfig: NextConfig = {
experimental: {
instrumentationHook: true,
turbo: {},
},
eslint: {
ignoreDuringBuilds: true,
Expand Down
Loading