@solidjs/start 0.5.3 → 0.5.4

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/config/index.js CHANGED
@@ -114,8 +114,7 @@ export function defineConfig(baseConfig = {}) {
114
114
  "~": join(process.cwd(), start.appRoot),
115
115
  ...(!start.ssr
116
116
  ? {
117
- "@solidjs/start/server": "@solidjs/start/server/spa",
118
- "@solidjs/start/entry": "@solidjs/start/entry/spa"
117
+ "@solidjs/start/server": "@solidjs/start/server/spa"
119
118
  }
120
119
  : {}),
121
120
  ...userConfig.resolve?.alias
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidjs/start",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "type": "module",
5
5
  "author": "Ryan Carniato",
6
6
  "publishConfig": {
@@ -1,6 +1,6 @@
1
1
  import {
2
- getCookie,
3
- setCookie
2
+ getCookie,
3
+ setCookie
4
4
  } from "vinxi/http";
5
5
  import { createRoutes } from "../shared/FileRoutes";
6
6
  import { FetchEvent, PageEvent } from "./types";
@@ -22,7 +22,7 @@ function initFromFlash(ctx: FetchEvent) {
22
22
  export async function createPageEvent(ctx: FetchEvent) {
23
23
  const clientManifest = import.meta.env.MANIFEST["client"];
24
24
  const serverManifest = import.meta.env.MANIFEST["ssr"];
25
- ctx.response.headers.set("Cache-Control", "no-cache");
25
+ ctx.response.headers.set("Content-Type", "text/html");
26
26
  // const prevPath = ctx.request.headers.get("x-solid-referrer");
27
27
  // const mutation = ctx.request.headers.get("x-solid-mutation") === "true";
28
28
  const pageEvent: PageEvent = Object.assign(ctx, {