@astrojs/node
Advanced tools
Comparing version 2.0.0 to 2.0.1
# @astrojs/node | ||
## 2.0.1 | ||
### Patch Changes | ||
- [#5114](https://github.com/withastro/astro/pull/5114) [`5c0c6e1ac`](https://github.com/withastro/astro/commit/5c0c6e1ac67e6341625f028794986700197334ae) Thanks [@matthewp](https://github.com/matthewp)! - Fixes finding the client folder for serving assets | ||
- [#5111](https://github.com/withastro/astro/pull/5111) [`df4d84610`](https://github.com/withastro/astro/commit/df4d84610ad2b543a37cb3bcac9887bfef0b8994) Thanks [@rishi-raj-jain](https://github.com/rishi-raj-jain)! - fix port in standalone mode | ||
## 2.0.0 | ||
@@ -4,0 +12,0 @@ |
@@ -19,2 +19,11 @@ function getAdapter(options) { | ||
hooks: { | ||
"astro:config:setup": ({ updateConfig }) => { | ||
updateConfig({ | ||
vite: { | ||
ssr: { | ||
noExternal: ["@astrojs/node"] | ||
} | ||
} | ||
}); | ||
}, | ||
"astro:config:done": ({ setAdapter, config }) => { | ||
@@ -21,0 +30,0 @@ var _a, _b, _c; |
@@ -28,3 +28,3 @@ import path from "path"; | ||
function startServer(app, options) { | ||
const port = process.env.PORT ? Number(process.env.port) : options.port ?? 8080; | ||
const port = process.env.PORT ? Number(process.env.PORT) : options.port ?? 8080; | ||
const { client } = resolvePaths(options); | ||
@@ -31,0 +31,0 @@ const handler = middleware(app); |
{ | ||
"name": "@astrojs/node", | ||
"description": "Deploy your site to a Node.js server", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"type": "module", | ||
@@ -32,3 +32,3 @@ "types": "./dist/index.d.ts", | ||
"@types/send": "^0.17.1", | ||
"astro": "1.5.0", | ||
"astro": "1.5.1", | ||
"astro-scripts": "0.0.8", | ||
@@ -35,0 +35,0 @@ "chai": "^4.3.6", |
@@ -68,3 +68,3 @@ # @astrojs/node | ||
import { defineConfig } from 'astro/config'; | ||
import nodejs from '@astrojs/node'; | ||
import node from '@astrojs/node'; | ||
@@ -71,0 +71,0 @@ export default defineConfig({ |
@@ -24,2 +24,11 @@ import type { AstroAdapter, AstroIntegration } from 'astro'; | ||
hooks: { | ||
'astro:config:setup': ({ updateConfig }) => { | ||
updateConfig({ | ||
vite: { | ||
ssr: { | ||
noExternal: ['@astrojs/node'], | ||
}, | ||
}, | ||
}); | ||
}, | ||
'astro:config:done': ({ setAdapter, config }) => { | ||
@@ -26,0 +35,0 @@ needsBuildConfig = !config.build?.server; |
@@ -38,3 +38,3 @@ import type { NodeApp } from 'astro/app/node'; | ||
export default function startServer(app: NodeApp, options: Options) { | ||
const port = process.env.PORT ? Number(process.env.port) : options.port ?? 8080; | ||
const port = process.env.PORT ? Number(process.env.PORT) : options.port ?? 8080; | ||
const { client } = resolvePaths(options); | ||
@@ -41,0 +41,0 @@ const handler = middleware(app); |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
46695
759
2