✅ Complete Astro migration - PDPA compliant website
- Migrated all pages from Next.js to Astro - Added PDPA-compliant Privacy Policy (Thai) - Added PDPA-compliant Terms & Conditions (Thai) - Added Cookie Policy with disclosure (Thai) - Implemented cookie consent banner (client-side) - Integrated Umami Analytics placeholder - Blog system with 3 posts - Optimized Docker configuration for production - Static site build (184KB, 11 pages) - Ready for Easypanel deployment Backup: /Users/kunthawatgreethong/Gitea/dealplustech-backup-nextjs-20260309.tar.gz
This commit is contained in:
33
dealplustech-astro/node_modules/drizzle-orm/prisma/pg/driver.js
generated
vendored
Normal file
33
dealplustech-astro/node_modules/drizzle-orm/prisma/pg/driver.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
import { Prisma } from "@prisma/client";
|
||||
import { entityKind } from "../../entity.js";
|
||||
import { DefaultLogger } from "../../logger.js";
|
||||
import { PgDatabase, PgDialect } from "../../pg-core/index.js";
|
||||
import { PrismaPgSession } from "./session.js";
|
||||
class PrismaPgDatabase extends PgDatabase {
|
||||
static [entityKind] = "PrismaPgDatabase";
|
||||
constructor(client, logger) {
|
||||
const dialect = new PgDialect();
|
||||
super(dialect, new PrismaPgSession(dialect, client, { logger }), void 0);
|
||||
}
|
||||
}
|
||||
function drizzle(config = {}) {
|
||||
let logger;
|
||||
if (config.logger === true) {
|
||||
logger = new DefaultLogger();
|
||||
} else if (config.logger !== false) {
|
||||
logger = config.logger;
|
||||
}
|
||||
return Prisma.defineExtension((client) => {
|
||||
return client.$extends({
|
||||
name: "drizzle",
|
||||
client: {
|
||||
$drizzle: new PrismaPgDatabase(client, logger)
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
export {
|
||||
PrismaPgDatabase,
|
||||
drizzle
|
||||
};
|
||||
//# sourceMappingURL=driver.js.map
|
||||
Reference in New Issue
Block a user