getfilepress 0.1.16 → 0.1.18

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "getfilepress",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "description": "FilePress — file-based Markdown blog engine. Link this package from a content-only site (config + posts), then run `filepress build`.",
@@ -133,13 +133,15 @@ export default defineConfig(async () => {
133
133
  writeFileSync(join(filepressCache, 'redirects.txt'), serializeRedirects(hints.redirects));
134
134
 
135
135
  const host = process.env.HOST?.trim() || '127.0.0.1';
136
+ const listen = {
137
+ host,
138
+ // Tailscale MagicDNS (*.ts.net) and other LAN names. IPs are already allowed.
139
+ allowedHosts: true as const,
140
+ ...(fixedPort ? { port: fixedPort, strictPort: true } : {}),
141
+ };
136
142
  return {
137
- server: fixedPort
138
- ? { host, port: fixedPort, strictPort: true }
139
- : undefined,
140
- preview: fixedPort
141
- ? { host, port: fixedPort, strictPort: true }
142
- : undefined,
143
+ server: listen,
144
+ preview: listen,
143
145
  resolve: {
144
146
  alias: [
145
147
  { find: /^@filepress\/core\/server$/, replacement: coreServer },