Libraries and fonts from CDNs
For safety, an app on Makeship may only load files from its own address. Scripts, stylesheets, fonts, images and API calls pointing at other sites are blocked by the browser.
When you deploy with the Claude connector, Makeship handles the common case for you. Anything the app loads from these CDNs is copied into the app at deploy time and its links are rewritten:
- fonts.googleapis.com
- fonts.gstatic.com
- cdnjs.cloudflare.com
- cdn.jsdelivr.net
- unpkg.com
Fonts a stylesheet refers to and modules a script imports are copied too, and integrity hashes are checked before they're dropped. Up to 80 copied files, 15 MB in all and 6 MB per file. Use exact versions in CDN links (react@18.3.1, not react).
- A script or stylesheet from any other site is refused with a fix. For example, use
https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4instead ofcdn.tailwindcss.com. - Images, API calls and embeds from other sites only get a warning, but won't load.
When you upload a folder from the dashboard, CDN files aren't copied yet: install the library with your package manager so your build bundles it, or save the file into your app's folder and link to it there.
React without a build
Claude on your phone can't run npm run build, and neither does Makeship. A single-page React app still works by loading React and Babel from unpkg and compiling JSX in the browser:
<script src="https://unpkg.com/react@18.3.1/umd/react.production.min.js"></script>
<script src="https://unpkg.com/react-dom@18.3.1/umd/react-dom.production.min.js"></script>
<script src="https://unpkg.com/@babel/standalone@7.26.4/babel.min.js"></script>
<div id="root"></div>
<script type="text/babel">
function App() {
const [items, setItems] = React.useState([]);
React.useEffect(() => { box.collection("items").list().then(setItems); }, []);
return <ul>{items.map((i) => <li key={i.id}>{i.name}</li>)}</ul>;
}
ReactDOM.createRoot(document.getElementById("root")).render(<App />);
</script>
Use the React and ReactDOM globals, not import, inside text/babel scripts. Deploy this through the connector so the three files get copied in.