@nuxt/nitro-server-nightly 0.0.0 β†’ 3.20.1-29360835.617b266c

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.
Files changed (41) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +117 -0
  3. package/dist/index.d.mts +47 -0
  4. package/dist/index.d.ts +47 -0
  5. package/dist/index.mjs +797 -0
  6. package/dist/runtime/handlers/error.d.ts +3 -0
  7. package/dist/runtime/handlers/error.js +64 -0
  8. package/dist/runtime/handlers/island.d.ts +4 -0
  9. package/dist/runtime/handlers/island.js +102 -0
  10. package/dist/runtime/handlers/renderer.d.ts +8 -0
  11. package/dist/runtime/handlers/renderer.js +237 -0
  12. package/dist/runtime/middleware/no-ssr.d.ts +2 -0
  13. package/dist/runtime/middleware/no-ssr.js +7 -0
  14. package/dist/runtime/plugins/dev-server-logs.d.ts +3 -0
  15. package/dist/runtime/plugins/dev-server-logs.js +82 -0
  16. package/dist/runtime/templates/error-500.d.ts +2 -0
  17. package/dist/runtime/templates/error-500.js +6 -0
  18. package/dist/runtime/utils/cache-driver.d.ts +6 -0
  19. package/dist/runtime/utils/cache-driver.js +42 -0
  20. package/dist/runtime/utils/cache.d.ts +8 -0
  21. package/dist/runtime/utils/cache.js +18 -0
  22. package/dist/runtime/utils/config.d.ts +1 -0
  23. package/dist/runtime/utils/config.js +1 -0
  24. package/dist/runtime/utils/dev.d.ts +1 -0
  25. package/dist/runtime/utils/dev.js +328 -0
  26. package/dist/runtime/utils/error.d.ts +6 -0
  27. package/dist/runtime/utils/error.js +11 -0
  28. package/dist/runtime/utils/paths.d.ts +4 -0
  29. package/dist/runtime/utils/paths.js +16 -0
  30. package/dist/runtime/utils/renderer/app.d.ts +6 -0
  31. package/dist/runtime/utils/renderer/app.js +32 -0
  32. package/dist/runtime/utils/renderer/build-files.d.ts +22 -0
  33. package/dist/runtime/utils/renderer/build-files.js +84 -0
  34. package/dist/runtime/utils/renderer/inline-styles.d.ts +2 -0
  35. package/dist/runtime/utils/renderer/inline-styles.js +13 -0
  36. package/dist/runtime/utils/renderer/islands.d.ts +9 -0
  37. package/dist/runtime/utils/renderer/islands.js +82 -0
  38. package/dist/runtime/utils/renderer/payload.d.ts +37 -0
  39. package/dist/runtime/utils/renderer/payload.js +66 -0
  40. package/package.json +58 -2
  41. package/dist/.gitkeep +0 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2016-present - Nuxt Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,117 @@
1
+ [![Nuxt banner](https://github.com/nuxt/nuxt/tree/main/.github/assets/banner.svg)](https://nuxt.com)
2
+
3
+ # Nuxt
4
+
5
+ <p>
6
+ <a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/v/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Version"></a>
7
+ <a href="https://www.npmjs.com/package/nuxt"><img src="https://img.shields.io/npm/dm/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="Downloads"></a>
8
+ <a href="https://github.com/nuxt/nuxt/tree/main/LICENSE"><img src="https://img.shields.io/github/license/nuxt/nuxt.svg?style=flat&colorA=18181B&colorB=28CF8D" alt="License"></a>
9
+ <a href="https://nuxt.com"><img src="https://img.shields.io/badge/Nuxt%20Docs-18181B?logo=nuxt" alt="Website"></a>
10
+ <a href="https://chat.nuxt.dev"><img src="https://img.shields.io/badge/Nuxt%20Discord-18181B?logo=discord" alt="Discord"></a>
11
+ <a href="https://securityscorecards.dev/"><img src="https://api.securityscorecards.dev/projects/github.com/nuxt/nuxt/badge" alt="Nuxt openssf scorecard score"></a>
12
+ </p>
13
+
14
+ Nuxt is a free and open-source framework with an intuitive and extendable way to create type-safe, performant and production-grade full-stack web applications and websites with Vue.js.
15
+
16
+ It provides a number of features that make it easy to build fast, SEO-friendly, and scalable web applications, including:
17
+ - Server-side rendering, Static Site Generation, Hybrid Rendering and Edge-Side Rendering
18
+ - Automatic routing with code-splitting and pre-fetching
19
+ - Data fetching and state management
20
+ - SEO Optimization and Meta tags definition
21
+ - Auto imports of components, composables and utils
22
+ - TypeScript with zero configuration
23
+ - Go fullstack with our server/ directory
24
+ - Extensible with [200+ modules](https://nuxt.com/modules)
25
+ - Deployment to a variety of [hosting platforms](https://nuxt.com/deploy)
26
+ - ...[and much more](https://nuxt.com) πŸš€
27
+
28
+ ### Table of Contents
29
+
30
+ - πŸš€ [Getting Started](#getting-started)
31
+ - πŸ’» [ Vue Development](#vue-development)
32
+ - πŸ“– [Documentation](#documentation)
33
+ - 🧩 [Modules](#modules)
34
+ - ❀️ [Contribute](#contribute)
35
+ - 🏠 [Local Development](#local-development)
36
+ - πŸ›Ÿ [Professional Support](#professional-support)
37
+ - πŸ”— [Follow Us](#follow-us)
38
+ - βš–οΈ [License](#license)
39
+
40
+ ---
41
+
42
+ ## <a name="getting-started">πŸš€ Getting Started</a>
43
+
44
+ Use the following command to create a new starter project. This will create a starter project with all the necessary files and dependencies:
45
+
46
+ ```bash
47
+ npm create nuxt@latest <my-project>
48
+ ```
49
+
50
+ > [!TIP]
51
+ > Discover also [nuxt.new](https://nuxt.new): Open a Nuxt starter on CodeSandbox, StackBlitz or locally to get up and running in a few seconds.
52
+
53
+ ## <a name="vue-development">πŸ’» Vue Development</a>
54
+
55
+ Simple, intuitive and powerful, Nuxt lets you write Vue components in a way that makes sense. Every repetitive task is automated, so you can focus on writing your full-stack Vue application with confidence.
56
+
57
+ Example of an `app.vue`:
58
+
59
+ ```vue
60
+ <script setup lang="ts">
61
+ useSeoMeta({
62
+ title: 'Meet Nuxt',
63
+ description: 'The Intuitive Vue Framework.',
64
+ })
65
+ </script>
66
+
67
+ <template>
68
+ <div id="app">
69
+ <AppHeader />
70
+ <NuxtPage />
71
+ <AppFooter />
72
+ </div>
73
+ </template>
74
+
75
+ <style scoped>
76
+ #app {
77
+ background-color: #020420;
78
+ color: #00DC82;
79
+ }
80
+ </style>
81
+ ```
82
+
83
+ ## <a name="documentation">πŸ“– Documentation</a>
84
+
85
+ We highly recommend you take a look at the [Nuxt documentation](https://nuxt.com/docs) to level up. It’s a great resource for learning more about the framework. It covers everything from getting started to advanced topics.
86
+
87
+ ## <a name="modules">🧩 Modules</a>
88
+
89
+ Discover our [list of modules](https://nuxt.com/modules) to supercharge your Nuxt project, created by the Nuxt team and community.
90
+
91
+ ## <a name="contribute">❀️ Contribute</a>
92
+
93
+ We invite you to contribute and help improve Nuxt πŸ’š
94
+
95
+ Here are a few ways you can get involved:
96
+ - **Reporting Bugs:** If you come across any bugs or issues, please check out the [reporting bugs guide](https://nuxt.com/docs/community/reporting-bugs) to learn how to submit a bug report.
97
+ - **Suggestions:** Have ideas to enhance Nuxt? We'd love to hear them! Check out the [contribution guide](https://nuxt.com/docs/community/contribution) to share your suggestions.
98
+ - **Questions:** If you have questions or need assistance, the [getting help guide](https://nuxt.com/docs/community/getting-help) provides resources to help you out.
99
+
100
+ ## <a name="local-development">🏠 Local Development</a>
101
+
102
+ Follow the docs to [Set Up Your Local Development Environment](https://nuxt.com/docs/community/framework-contribution#setup) to contribute to the framework and documentation.
103
+
104
+ ## <a name="professional-support">πŸ›Ÿ Professional Support</a>
105
+
106
+ - Technical audit & consulting: [Nuxt Experts](https://nuxt.com/enterprise/support)
107
+ - Custom development & more: [Nuxt Agencies Partners](https://nuxt.com/enterprise/agencies)
108
+
109
+ ## <a name="follow-us">πŸ”— Follow Us</a>
110
+
111
+ <p valign="center">
112
+ <a href="https://go.nuxt.com/discord"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/discord.svg" alt="Discord"></a>&nbsp;&nbsp;<a href="https://go.nuxt.com/x"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/twitter.svg" alt="Twitter"></a>&nbsp;&nbsp;<a href="https://go.nuxt.com/github"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/github.svg" alt="GitHub"></a>&nbsp;&nbsp;<a href="https://go.nuxt.com/bluesky"><img width="20px" src="https://github.com/nuxt/nuxt/tree/main/.github/assets/bluesky.svg" alt="Bluesky"></a>
113
+ </p>
114
+
115
+ ## <a name="license">βš–οΈ License</a>
116
+
117
+ [MIT](https://github.com/nuxt/nuxt/tree/main/LICENSE)
@@ -0,0 +1,47 @@
1
+ import { Nuxt } from '@nuxt/schema';
2
+ import { Nitro } from 'nitropack/types';
3
+ import { H3Event } from 'h3';
4
+ import { LogObject } from 'consola';
5
+ import { NuxtRenderHTMLContext, NuxtIslandResponse, NuxtIslandContext } from 'nuxt/app';
6
+ import { RuntimeConfig } from 'nuxt/schema';
7
+
8
+ declare module 'nitropack' {
9
+ interface NitroRuntimeConfigApp {
10
+ buildAssetsDir: string;
11
+ cdnURL: string;
12
+ }
13
+ interface NitroRuntimeConfig extends RuntimeConfig {
14
+ }
15
+ interface NitroRouteConfig {
16
+ ssr?: boolean;
17
+ noScripts?: boolean;
18
+ /** @deprecated Use `noScripts` instead */
19
+ experimentalNoScripts?: boolean;
20
+ }
21
+ interface NitroRouteRules {
22
+ ssr?: boolean;
23
+ noScripts?: boolean;
24
+ /** @deprecated Use `noScripts` instead */
25
+ experimentalNoScripts?: boolean;
26
+ appMiddleware?: Record<string, boolean>;
27
+ }
28
+ interface NitroRuntimeHooks {
29
+ 'dev:ssr-logs': (ctx: {
30
+ logs: LogObject[];
31
+ path: string;
32
+ }) => void | Promise<void>;
33
+ 'render:html': (htmlContext: NuxtRenderHTMLContext, context: {
34
+ event: H3Event;
35
+ }) => void | Promise<void>;
36
+ 'render:island': (islandResponse: NuxtIslandResponse, context: {
37
+ event: H3Event;
38
+ islandContext: NuxtIslandContext;
39
+ }) => void | Promise<void>;
40
+ }
41
+ }
42
+
43
+ declare function bundle(nuxt: Nuxt & {
44
+ _nitro?: Nitro;
45
+ }): Promise<void>;
46
+
47
+ export { bundle };
@@ -0,0 +1,47 @@
1
+ import { Nuxt } from '@nuxt/schema';
2
+ import { Nitro } from 'nitropack/types';
3
+ import { H3Event } from 'h3';
4
+ import { LogObject } from 'consola';
5
+ import { NuxtRenderHTMLContext, NuxtIslandResponse, NuxtIslandContext } from 'nuxt/app';
6
+ import { RuntimeConfig } from 'nuxt/schema';
7
+
8
+ declare module 'nitropack' {
9
+ interface NitroRuntimeConfigApp {
10
+ buildAssetsDir: string;
11
+ cdnURL: string;
12
+ }
13
+ interface NitroRuntimeConfig extends RuntimeConfig {
14
+ }
15
+ interface NitroRouteConfig {
16
+ ssr?: boolean;
17
+ noScripts?: boolean;
18
+ /** @deprecated Use `noScripts` instead */
19
+ experimentalNoScripts?: boolean;
20
+ }
21
+ interface NitroRouteRules {
22
+ ssr?: boolean;
23
+ noScripts?: boolean;
24
+ /** @deprecated Use `noScripts` instead */
25
+ experimentalNoScripts?: boolean;
26
+ appMiddleware?: Record<string, boolean>;
27
+ }
28
+ interface NitroRuntimeHooks {
29
+ 'dev:ssr-logs': (ctx: {
30
+ logs: LogObject[];
31
+ path: string;
32
+ }) => void | Promise<void>;
33
+ 'render:html': (htmlContext: NuxtRenderHTMLContext, context: {
34
+ event: H3Event;
35
+ }) => void | Promise<void>;
36
+ 'render:island': (islandResponse: NuxtIslandResponse, context: {
37
+ event: H3Event;
38
+ islandContext: NuxtIslandContext;
39
+ }) => void | Promise<void>;
40
+ }
41
+ }
42
+
43
+ declare function bundle(nuxt: Nuxt & {
44
+ _nitro?: Nitro;
45
+ }): Promise<void>;
46
+
47
+ export { bundle };