Refactor image upload handling by moving upload directory outside of public folder for better compatibility with Next.js. Update related Docker configurations and scripts to reflect new upload paths. Replace instances of Next.js Image component with CmsImage for consistent image handling across the application.
This commit is contained in:
1 parent
0a57ef2b80
commit
1641edfd01
19 files changed
+162
-39
No files matched your search
@@ -149,17 +149,15 @@ async function main() {
|
||||
}
|
||||
|
||||
const sequences = await client.query(`
|
||||
SELECT sequencename, last_value, is_called
|
||||
SELECT sequencename, last_value
|
||||
FROM pg_sequences
|
||||
WHERE schemaname = 'public'
|
||||
ORDER BY sequencename
|
||||
`);
|
||||
for (const seq of sequences.rows) {
|
||||
const called = seq.is_called === true;
|
||||
if (seq.last_value == null) continue;
|
||||
const seqName = String(seq.sequencename).replaceAll("'", "''");
|
||||
lines.push(
|
||||
`SELECT setval('${seqName}', ${Number(seq.last_value)}, ${called});`,
|
||||
);
|
||||
lines.push(`SELECT setval('${seqName}', ${Number(seq.last_value)}, true);`);
|
||||
}
|
||||
|
||||
lines.push("", "COMMIT;", "");
|
||||
|
||||
Reference in new issue
Block a user