Skip to content
This repository was archived by the owner on Oct 22, 2024. It is now read-only.

Commit 6a4b39c

Browse files
authored
Merge pull request #19 from eisberg-labs/bugfix-next-13
Bugfix next 13
2 parents 7c81d9e + 2012c69 commit 6a4b39c

23 files changed

+9983
-4914
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/dist
33
/node_modules
44
/test/fixtures
5+
/examples

.gitignore

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ npm-debug.log*
66
/dist
77
/local
88
/reports
9-
/node_modules
9+
node_modules
1010
.DS_Store
1111
Thumbs.db
1212
.idea
@@ -16,4 +16,4 @@ Thumbs.db
1616
*.iml
1717
test/fixtures/example/build
1818
test/fixtures/example/node_modules
19-
19+
.next

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,5 @@
22
/dist
33
/node_modules
44
/test/fixtures
5-
CHANGELOG.md
5+
/examples
6+
CHANGELOG.md

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
44

5+
### [1.1.5-alpha.0](https://github.com/eisberg-labs/nextjs-node-loader/compare/v1.1.4...v1.1.5-alpha.0) (2023-10-06)
6+
57
### [1.1.4](https://github.com/eisberg-labs/nextjs-node-loader/compare/v1.1.3...v1.1.4) (2023-03-08)
68

79

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ export default function handler(req, res) {
5252
|:----------:|:----------:|:--------------------:| :---------------------------------------------------- |
5353
| flags | `{Number}` | `undefined` | Enables/Disables `url`/`image-set` functions handling |
5454
| outputPath | `{String}` | webpack's outputPath | The root path of shared node libraries |
55+
| includeWebpackPublicPath | `{String}`| false | If __webpack_public_path__ should be included in a path for loading node module. For nextjs >13.2.5 should be false. |
5556

5657
## License
5758

examples/next-13-koffi/.env.development

Whitespace-only changes.

examples/next-13-koffi/.env.production

Whitespace-only changes.

examples/next-13-koffi/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v18.17.0

examples/next-13-koffi/README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).
2+
3+
## Getting Started
4+
5+
First, run the development server:
6+
7+
```bash
8+
npm run dev
9+
# or
10+
yarn dev
11+
# or
12+
pnpm dev
13+
```
14+
15+
Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
16+
17+
You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.
18+
19+
This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.
20+
21+
## Learn More
22+
23+
To learn more about Next.js, take a look at the following resources:
24+
25+
- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
26+
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.
27+
28+
You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!
29+
30+
## Deploy on Vercel
31+
32+
The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.
33+
34+
Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import {TLS_Client} from '@/utils/tls/tls';
2+
import {NextResponse, NextRequest} from 'next/server'
3+
4+
5+
export async function GET(request: NextRequest) {
6+
const response = {status: 200, errors: [], data: null}
7+
const client = new TLS_Client()
8+
9+
10+
return NextResponse.json({errors: response.errors, data: response.data}, {status: response.status})
11+
12+
}

0 commit comments

Comments
 (0)