mirror of
https://github.com/tiennm99/noitu.git
synced 2026-10-12 18:16:39 +00:00
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.
15 lines
489 B
JavaScript
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' })
|
|
}
|
|
};
|