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

Commit c6a1d2f

Browse files
committed
fix #18, #17, #16
1 parent fe4abc1 commit c6a1d2f

22 files changed

+9979
-4912
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

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+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
module.exports = {
2+
apps: [{
3+
name: 'XXX',
4+
exec_mode: 'cluster',
5+
instances: '1', // Or a number of instances
6+
script: 'node_modules/next/dist/bin/next',
7+
args: 'start -p 5000', //running on port 3000,
8+
max_memory_restart: '400M'
9+
10+
}
11+
// ,{
12+
// name: 'AMZ-monitor',
13+
// exec_mode: 'cluster',
14+
// instances: '1', // Or a number of instances
15+
// script: 'lib/amazon/monitor/monitor.mts',
16+
// max_memory_restart: '400M'
17+
// },{
18+
// name: 'ebay-booster',
19+
// exec_mode: 'cluster',
20+
// instances: '1', // Or a number of instances
21+
// script: 'lib/ebay/view-booster.mts',
22+
// max_memory_restart: '400M'
23+
// }
24+
]
25+
};

0 commit comments

Comments
 (0)