Skip to content
Merged

Vite #824

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions docs/source/about/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,18 @@ Unreleased
implementation specific and are now available as top-level imports. Instead of each
backend defining these hooks, backends establish a ``ConnectionContext`` with this
information.
- :pull:`824` - IDOM's built-in backend server now expose the following routes:

- ``/_idom/assets/<file-path>``
- ``/_idom/stream/<path>``
- ``/_idom/modules/<file-path>``
- ``/<prefix>/<path>``

This should allow the browser to cache static resources. Even if your ``url_prefix``
is ``/_idom``, your app should still work as expected. Though if you're using
``idom-router``, IDOM's server routes will always take priority.
- :pull:`824` - Backend implementations now strip any URL prefix in the pathname for
``use_location``.

**Added**

Expand Down
8 changes: 6 additions & 2 deletions src/client/public/index.html → src/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,16 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="./idom-logo-square-small.svg" type="image/svg+xml" />
<link
rel="icon"
href="public/idom-logo-square-small.svg"
type="image/svg+xml"
/>
<title>IDOM</title>
</head>
<body>
<div id="app"></div>
<script type="module" src="../packages/idom-app-react/src/index.js">
<script type="module">
import { mount } from "idom-app-react";
mount(document.getElementById("app"));
</script>
Expand Down
Loading