mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-27 14:44:17 +00:00
Remove PPR flag, add noStore to fetchInvoiceById (#307)
* Remove PPR flag * Add no store to fetchInvoiceById
This commit is contained in:
committed by
GitHub
parent
e008e7a0e2
commit
e8ba4d3200
@@ -150,6 +150,7 @@ export async function fetchInvoicesPages(query: string) {
|
||||
}
|
||||
|
||||
export async function fetchInvoiceById(id: string) {
|
||||
noStore();
|
||||
try {
|
||||
const data = await sql<InvoiceForm>`
|
||||
SELECT
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
/** @type {import('next').NextConfig} */
|
||||
const nextConfig = {
|
||||
experimental: {
|
||||
ppr: true,
|
||||
},
|
||||
};
|
||||
const nextConfig = {};
|
||||
|
||||
module.exports = nextConfig;
|
||||
|
||||
Reference in New Issue
Block a user