Skip to content

Commit

Permalink
feat: use regular dev
Browse files Browse the repository at this point in the history
  • Loading branch information
sadmann7 committed May 22, 2024
1 parent 118c068 commit ded77ae
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 23 deletions.
13 changes: 0 additions & 13 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,19 +8,6 @@ await import("./src/env.js")

/** @type {import("next").NextConfig} */
const nextConfig = {
experimental: {
turbo: {
resolveExtensions: [
".mdx",
".tsx",
".ts",
".jsx",
".js",
".mjs",
".json",
],
},
},
images: {
remotePatterns: [
{
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"clean": "rimraf --glob **/node_modules **/dist **/.next pnpm-lock.yaml **/.tsbuildinfo **/.contentlayer **/.react-email",
"build": "contentlayer build && next build",
"dev": "next dev --turbo",
"dev": "next dev",
"start": "next start",
"lint": "next lint",
"lint:fix": "next lint --fix",
Expand Down
10 changes: 1 addition & 9 deletions src/lib/queries/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,7 @@ import { getPlanLimits } from "@/lib/subscription"
* It ensures a single request is made for multiple identical data fetches, with the returned data cached and shared across components during the server render.
* @see https://react.dev/reference/react/cache#reference
*/
export const getCachedUser = cache(async () => {
noStore()
try {
return await currentUser()
} catch (err) {
console.error(err)
return null
}
})
export const getCachedUser = cache(currentUser)

export async function getUserUsageMetrics(input: { userId: string }) {
noStore()
Expand Down

0 comments on commit ded77ae

Please sign in to comment.