![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
@capri-js/cloudflare
Advanced tools
// vite.config.ts
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
import capri from "@capri-js/react";
import cloudflare from "@capri-js/cloudflare";
export default defineConfig({
plugins: [
react(),
capri({
target: cloudflare({
// options (see below)
}),
}),
],
});
The output can be configured using the following options:
webStreamsPolyfill
Some libraries like react-dom/server
require
the streams_enable_constructors
feature flag to be enabled. As a workaround, you can set this option to true
.
type
- What kind of function to createWhen set to "worker"
, Capri will generate a
_worker.js
file at the root of your output directory. In this case, Cloudflare will ignore any custom functions present in /functions
.
When set to "middleware
, Capri will generate a
/functions/_middleware.js
file instead. This allows
you to use your own custom functions in addition to Capri.
When set to "auto"
(default), Capri will generate a worker unless a /functions
directory is present, in which
case a middleware will be generated instead.
FAQs
## Usage
The npm package @capri-js/cloudflare receives a total of 5 weekly downloads. As such, @capri-js/cloudflare popularity was classified as not popular.
We found that @capri-js/cloudflare demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.