next-bun-compile 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/index.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ next-bun-compile is a [Next.js Build Adapter](https://nextjs.org/docs/app/api-re
|
|
|
29
29
|
import type { NextConfig } from "next";
|
|
30
30
|
|
|
31
31
|
const nextConfig: NextConfig = {
|
|
32
|
-
adapterPath: "next-bun-compile
|
|
32
|
+
adapterPath: "next-bun-compile",
|
|
33
33
|
};
|
|
34
34
|
|
|
35
35
|
export default nextConfig;
|
|
@@ -38,7 +38,7 @@ export default nextConfig;
|
|
|
38
38
|
Or enable it without touching the config at all:
|
|
39
39
|
|
|
40
40
|
```bash
|
|
41
|
-
NEXT_ADAPTER_PATH=next-bun-compile
|
|
41
|
+
NEXT_ADAPTER_PATH=next-bun-compile next build
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
No `output: "standalone"` needed — the adapter assembles its own traced
|
|
@@ -52,7 +52,7 @@ output tree.
|
|
|
52
52
|
> import { createRequire } from "node:module";
|
|
53
53
|
> const req = createRequire(process.cwd() + "/");
|
|
54
54
|
> const nextConfig: NextConfig = {
|
|
55
|
-
> adapterPath: req.resolve("next-bun-compile
|
|
55
|
+
> adapterPath: req.resolve("next-bun-compile"),
|
|
56
56
|
> };
|
|
57
57
|
> ```
|
|
58
58
|
|
|
@@ -93,7 +93,7 @@ If you configure `assetPrefix` in your `next.config.ts`, static assets (`/_next/
|
|
|
93
93
|
|
|
94
94
|
```ts
|
|
95
95
|
const nextConfig: NextConfig = {
|
|
96
|
-
adapterPath: "next-bun-compile
|
|
96
|
+
adapterPath: "next-bun-compile",
|
|
97
97
|
assetPrefix: "https://cdn.example.com",
|
|
98
98
|
};
|
|
99
99
|
```
|
|
@@ -142,7 +142,7 @@ Failed to load external module pino-142500b1eb3f4baf: Cannot find package ...
|
|
|
142
142
|
|
|
143
143
|
```ts
|
|
144
144
|
const nextConfig: NextConfig = {
|
|
145
|
-
adapterPath: "next-bun-compile
|
|
145
|
+
adapterPath: "next-bun-compile",
|
|
146
146
|
transpilePackages: ["pino", "pino-pretty"],
|
|
147
147
|
};
|
|
148
148
|
```
|
package/dist/index.js
CHANGED