Monorepo for Aesthetic.Computer aesthetic.computer
4
fork

Configure Feed

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

fix: remove nanoid from external_node_modules, use absolute API URLs

nanoid is ESM-only and must be bundled by esbuild, not left external.
Also use absolute https://aesthetic.computer/api/ URLs in production.

+3 -3
+2 -2
system/netlify.toml
··· 146 146 [functions.stretched-paintings] 147 147 # justanothersystem.org - Stretched paintings CRUD API (admin: @jeffrey only) 148 148 node_bundler = "esbuild" 149 - external_node_modules = ["mongodb", "mongodb-connection-string-url", "nanoid", "@aws-sdk/client-s3", "@aws-sdk/s3-request-presigner"] 149 + external_node_modules = ["mongodb", "mongodb-connection-string-url", "@aws-sdk/client-s3", "@aws-sdk/s3-request-presigner"] 150 150 included_files = ["backend/**/*.mjs"] 151 151 included_env_vars = ["CONTEXT", "ADMIN_SUB", "AUTH0_M2M_CLIENT_ID", "AUTH0_M2M_SECRET", "MONGODB_CONNECTION_STRING", "MONGODB_NAME", "ART_KEY", "ART_SECRET", "ART_ENDPOINT", "ART_SPACE_NAME", "DO_SPACES_KEY", "DO_SPACES_SECRET"] 152 152 153 153 [functions.jas-tags] 154 154 # justanothersystem.org - Tags/labels CRUD API (admin: @jeffrey only) 155 155 node_bundler = "esbuild" 156 - external_node_modules = ["mongodb", "mongodb-connection-string-url", "nanoid"] 156 + external_node_modules = ["mongodb", "mongodb-connection-string-url"] 157 157 included_files = ["backend/**/*.mjs"] 158 158 included_env_vars = ["CONTEXT", "ADMIN_SUB", "AUTH0_M2M_CLIENT_ID", "AUTH0_M2M_SECRET", "MONGODB_CONNECTION_STRING", "MONGODB_NAME"] 159 159
+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' : ''; 692 + const API_BASE = isDev ? 'https://localhost:8888' : 'https://aesthetic.computer'; 693 693 const API_URL = `${API_BASE}/api/stretched-paintings`; 694 694 const TAGS_URL = `${API_BASE}/api/jas-tags`; 695 695