From 8e961292cb9ac92a43ce6cbcc9785aa86b502c6b Mon Sep 17 00:00:00 2001 From: syui Date: Sat, 14 Jun 2025 18:18:29 +0900 Subject: [PATCH] fix: reorder script loading to prevent AskAI function override MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Move OAuth assets inclusion to end of body to ensure Ask-AI JavaScript loads before OAuth comment system scripts. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- my-blog/static/_redirects | 7 ++----- my-blog/templates/base.html | 3 ++- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/my-blog/static/_redirects b/my-blog/static/_redirects index fe850f8..bc53dff 100644 --- a/my-blog/static/_redirects +++ b/my-blog/static/_redirects @@ -1,8 +1,5 @@ -# AI機能をai.gpt MCP serverにリダイレクト -/api/ask https://ai-gpt-mcp.syui.ai/ask 200 - -# Ollama API proxy (Cloudflare Workers) -/api/ollama-proxy https://ollama-proxy.YOUR-SUBDOMAIN.workers.dev/:splat 200 +# Ask-AI機能をOllamaにプロキシ +/api/ask https://ollama.syui.ai/api/generate 200 # OAuth routes /oauth/* /oauth/index.html 200 diff --git a/my-blog/templates/base.html b/my-blog/templates/base.html index afc545b..725e320 100644 --- a/my-blog/templates/base.html +++ b/my-blog/templates/base.html @@ -15,7 +15,6 @@ - {% include "oauth-assets.html" %} {% block head %}{% endblock %} @@ -92,5 +91,7 @@ + + {% include "oauth-assets.html" %}