Skip to content
15 changes: 15 additions & 0 deletions astro.config.mjs
Original file line number Diff line number Diff line change
@@ -1,8 +1,23 @@
import { defineConfig } from 'astro/config';

const legacyDirectoryIndexes = {
name: 'legacy-directory-indexes',
hooks: {
'astro:server:setup': ({ server }) => {
server.middlewares.use((req, _res, next) => {
const pathname = new URL(req.url ?? '/', 'http://localhost').pathname;
if (pathname === '/') req.url = `/index.html${(req.url ?? '').slice(pathname.length)}`;
if (pathname === '/blog/') req.url = `/blog/index.html${(req.url ?? '').slice(pathname.length)}`;
next();
});
},
},
};

export default defineConfig({
site: 'https://bytefuture.ai',
output: 'static',
integrations: [legacyDirectoryIndexes],
build: {
// Emit /blog/<slug>.html as actual files, not /blog/<slug>.html/index.html.
// This preserves every already-published ByteFuture Writings URL.
Expand Down
Binary file added blog/cc-switch-needs-model-mapping.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
100 changes: 100 additions & 0 deletions sitemap.xml
Original file line number Diff line number Diff line change
Expand Up @@ -325,4 +325,104 @@
<lastmod>2026-08-13</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-claude-code-cli-with-token-station.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.7</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-claude-code-cli-with-token-station-zh.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-claude-code-cli-with-token-station-ja.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-claude-code-cli-with-token-station-ko.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-claude-code-app-with-cc-switch-and-token-station.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.7</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-claude-code-app-with-cc-switch-and-token-station-zh.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-claude-code-app-with-cc-switch-and-token-station-ja.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-claude-code-app-with-cc-switch-and-token-station-ko.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-codex-app-with-token-station.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.7</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-codex-app-with-token-station-zh.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-codex-app-with-token-station-ja.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-codex-app-with-token-station-ko.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-codex-cli-with-token-station.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.7</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-codex-cli-with-token-station-zh.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-codex-cli-with-token-station-ja.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/configure-codex-cli-with-token-station-ko.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/codex-multi-model-subagents.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.7</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/codex-multi-model-subagents-zh.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/codex-multi-model-subagents-ja.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
<url>
<loc>https://bytefuture.ai/blog/codex-multi-model-subagents-ko.html</loc>
<lastmod>2026-08-17</lastmod>
<priority>0.6</priority>
</url>
</urlset>
Loading