Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: justanothersystem.org API routing — use relative URLs, add jas-tags redirects

+21 -1
+20
system/netlify.toml
··· 598 598 status = 200 599 599 force = true 600 600 [[redirects]] 601 + from = "https://justanothersystem.org/api/jas-tags" 602 + to = "/.netlify/functions/jas-tags" 603 + status = 200 604 + force = true 605 + [[redirects]] 606 + from = "https://justanothersystem.org/api/jas-tags/*" 607 + to = "/.netlify/functions/jas-tags/:splat" 608 + status = 200 609 + force = true 610 + [[redirects]] 601 611 from = "https://www.justanothersystem.org/api/tags" 602 612 to = "/.netlify/functions/jas-tags" 603 613 status = 200 604 614 force = true 605 615 [[redirects]] 606 616 from = "https://www.justanothersystem.org/api/tags/*" 617 + to = "/.netlify/functions/jas-tags/:splat" 618 + status = 200 619 + force = true 620 + [[redirects]] 621 + from = "https://www.justanothersystem.org/api/jas-tags" 622 + to = "/.netlify/functions/jas-tags" 623 + status = 200 624 + force = true 625 + [[redirects]] 626 + from = "https://www.justanothersystem.org/api/jas-tags/*" 607 627 to = "/.netlify/functions/jas-tags/:splat" 608 628 status = 200 609 629 force = true
+1 -1
system/public/justanothersystem.org/index.html
··· 689 689 <script> 690 690 // ====== Configuration ====== 691 691 const isDev = window.location.hostname === 'localhost' || window.location.hostname.includes('local.'); 692 - const API_BASE = isDev ? 'https://localhost:8888' : 'https://aesthetic.computer'; 692 + const API_BASE = isDev ? 'https://localhost:8888' : ''; 693 693 const API_URL = `${API_BASE}/api/stretched-paintings`; 694 694 const TAGS_URL = `${API_BASE}/api/jas-tags`; 695 695