Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
astro-tunnel
Advanced tools
Astro Tunnel is an Astro Dev Toolbar App that enables your local Astro server to be accessible from the internet. Internally, it uses Cloudflare's Quick Tunnels via unjs/untun, so no additional configuration is required to start tunneling.
To install Astro Tunnel, run the following command with your preferred package manager:
npx astro add astro-tunnel
import { defineConfig } from 'astro/config';
import tunnel from 'astro-tunnel';
export default defineConfig({
integrations: [tunnel()],
});
Upon first starting a tunnel, you will be prompted to accept the terms of the Cloudflare License, Terms and Privacy Policy on the command line. Once you accept these terms, a tunnel will be initiated and a public URL for your local Astro server will be displayed inside the Dev Toolbar.
If you encounter any issues while starting a tunnel, try installing cloudflared
separately by running npx untun@latest tunnel http://localhost:3000
first. After that, you should be able to start a tunnel from within the App.
Astro Tunnel accepts the following options:
tunnel({
// The URL to expose. Defaults to http://localhost:4321.
url: 'http://localhost:4321',
// The local server port to expose. Defaults to 4321. Only used if `url` is not set.
port: 4321,
// The local server hostname to expose. Defaults to localhost. Only used if `url` is not set.
host: 'localhost',
// The local server protocol to use. Defaults to http. Only used if `url` is not set.
protocol: 'http',
// Whether to verify the local server TLS certificate. Defaults to false.
verifyTLS: false,
// Whether to accept the Cloudflare terms of service. Defaults to false.
acceptCloudflareNotice: false,
});
FAQs
Expose your local Astro server to the internet
The npm package astro-tunnel receives a total of 95 weekly downloads. As such, astro-tunnel popularity was classified as not popular.
We found that astro-tunnel demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.