Skip to content

Vite #824

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Oct 31, 2022
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