chore: move to server external instead

This commit is contained in:
Bereket Engida
2024-09-17 12:14:37 +03:00
parent 03933e31e4
commit bf8ce05fc4
3 changed files with 9 additions and 7 deletions

View File

@@ -18,10 +18,15 @@ export default async function Home() {
<p className="text-center break-words">
Official demo to showcase <span className="italic underline">better-auth.</span> features and capabilities. <br />
<span className="text-xs text-muted-foreground text-center">
* All auth related features implemented on this demo are natively supported by <span className="italic">better-auth. (btw)</span>
* All auth related features implemented on this demo are natively supported by <span className="italic">better-auth. (
no custom backend code is written
)</span>
</span>
</p>
</div>
<div>
</div>
<div className="gap-4 w-full flex items-center justify-center">
{

View File

@@ -1,10 +1,7 @@
import type { NextConfig } from "next";
const nextConfig: NextConfig = {
webpack: (config) => {
config.externals.push("@libsql/client");
return config;
},
serverExternalPackages: ["@libsql/client"],
/* config options here */
};

View File

@@ -6,8 +6,8 @@
"packageManager": "pnpm@9.1.1",
"scripts": {
"build": "turbo --filter \"./packages/*\" build",
"dev": "dotenv turbo --filter \"./packages/*\" dev",
"dev:example": "dotenv turbo --filter next-js-example dev",
"dev": "turbo --filter \"./packages/*\" dev",
"dev:example": "turbo --filter next-js-example dev",
"clean": "turbo --filter \"./packages/*\" clean && rm -rf node_modules",
"format": "biome format . --write",
"lint": "biome check .",