Files
noitu/web/svelte.config.js
T
tiennm99 90cd679639 feat(web): state the rules, reach the chat from the top of the board, lint the tree
A /rules page says, in one place, what nothing in the app said before:
the chain rule, the clock, what a dead end costs, elimination and the last
player standing, how a word is scored and the reconnect window. Linked
from the landing page and from the board and lobby headers.

The chat control moves above the chain as a pill with the unread count,
where it can be reached on a phone mid-game, and the lobby's folded chat
now carries an unread badge too.

ESLint with the Svelte and JSDoc plugins, run in CI; the real findings
it turned up (missing each keys, untyped timer handles) are fixed.
2026-09-21 01:17:52 +07:00

15 lines
489 B
JavaScript

import adapter from '@sveltejs/adapter-static';
/**
* A single-page app: the Go binary serves the built assets and falls back to
* index.html for unknown paths, so every route is resolved in the browser.
* Prerendering is disabled in src/routes/+layout.js rather than here, because
* the game has nothing static to render — every screen depends on a socket.
* @type {import('@sveltejs/kit').Config}
*/
export default {
kit: {
adapter: adapter({ fallback: 'index.html' })
}
};