@platformatic/nitro 0.0.1 → 3.63.0
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/NOTICE +6 -0
- package/README.md +13 -5
- package/config.d.ts +829 -0
- package/eslint.config.js +5 -0
- package/index.d.ts +54 -0
- package/index.js +39 -0
- package/lib/capability.js +558 -0
- package/lib/schema.js +60 -0
- package/package.json +39 -17
- package/schema.json +3080 -0
package/NOTICE
ADDED
package/README.md
CHANGED
|
@@ -1,11 +1,19 @@
|
|
|
1
|
-
# @platformatic/
|
|
1
|
+
# @platformatic/nitro
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Platformatic capability for running [Nitro](https://nitro.build/) applications inside Watt.
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
It supports standalone `nitro` and `nitropack` applications, and applications that use Nitro as a Vite plugin. Vite development is delegated to `@platformatic/vite`; production uses the generated Nitro server.
|
|
6
6
|
|
|
7
|
-
##
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @platformatic/nitro
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Configuration
|
|
14
|
+
|
|
15
|
+
Set `nitro.outputDirectory` when the generated output is not `.output`, and `nitro.entrypoint` when the server entrypoint is not `server/index.mjs`. Standalone applications receive `application.basePath` through `NITRO_APP_BASE_URL` during development and builds.
|
|
8
16
|
|
|
9
17
|
## License
|
|
10
18
|
|
|
11
|
-
Apache
|
|
19
|
+
Apache 2.0
|