Remove PPR flag, add noStore to fetchInvoiceById (#307)

* Remove PPR flag

* Add no store to fetchInvoiceById
This commit is contained in:
Delba de Oliveira
2023-10-30 14:29:41 +00:00
committed by GitHub
parent e008e7a0e2
commit e8ba4d3200
2 changed files with 2 additions and 5 deletions

View File

@@ -150,6 +150,7 @@ export async function fetchInvoicesPages(query: string) {
}
export async function fetchInvoiceById(id: string) {
noStore();
try {
const data = await sql<InvoiceForm>`
SELECT

View File

@@ -1,8 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
experimental: {
ppr: true,
},
};
const nextConfig = {};
module.exports = nextConfig;