Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions public/__redirects
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,7 @@
/pages/framework-guides/pages/framework-guides/deploy-a-svelte-site/ /pages/framework-guides/deploy-a-svelte-kit-site/ 301
/pages/how-to/deploy-a-zola-site/ /pages/framework-guides/deploy-a-zola-site/ 301
/pages/how-to/elderjs/ /pages/framework-guides/deploy-an-elderjs-site/ 301
/pages/framework-guides/deploy-an-analog-site/ /workers/framework-guides/web-apps/more-web-frameworks/analog/ 301
/pages/configuration/language-support-and-tools/ /pages/configuration/build-image/ 301
/pages/platform/github-integration/ /pages/configuration/git-integration/ 301
/pages/platform/direct-uploads/ /pages/get-started/direct-upload/ 301
Expand Down
161 changes: 0 additions & 161 deletions src/content/docs/pages/framework-guides/deploy-an-analog-site.mdx

This file was deleted.

1 change: 0 additions & 1 deletion src/content/docs/pages/get-started/c3.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ To create a Pages project you must now specify the `--platform=pages` arg, other

If you choose the "Framework Starter" option, you will be prompted to choose a framework to use. The following frameworks are currently supported:

- [Analog](/pages/framework-guides/deploy-an-analog-site/)
- [Angular](/pages/framework-guides/deploy-an-angular-site/)
- [Astro](/pages/framework-guides/deploy-an-astro-site/)
- [Docusaurus](/pages/framework-guides/deploy-a-docusaurus-site/)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
---
pcx_content_type: how-to
title: Analog
tags: ["full-stack", "Angular"]
description: Create an Analog application and deploy it to Cloudflare Workers.
---

import { Render, PackageManagers } from "~/components";

In this guide, you will create a new [Analog](https://analogjs.org/) application and deploy to Cloudflare Workers.

[Analog](https://analogjs.org/) is a fullstack meta-framework for Angular, powered by [Vite](https://vitejs.dev/) and [Nitro](https://nitro.unjs.io/).

## 1. Set up a new project

Use the [`create-cloudflare`](https://www.npmjs.com/package/create-cloudflare) CLI (C3) to set up a new project. C3 will create a new project directory, initiate Analog's official setup tool, and provide the option to deploy instantly.

To use `create-cloudflare` to create a new Analog project, run the following command:

<PackageManagers
type="create"
pkg="cloudflare@latest"
args="my-analog-app --framework=analog"
/>

After setting up your project, change your directory by running the following command:

```sh
cd my-analog-app
```

## 2. Develop locally

After you have created your project, run the following command in the project directory to start a local server. This will allow you to preview your project locally during development.

<PackageManagers type="run" args={"dev"} />

## 3. Deploy your Project

Your project can be deployed to a `*.workers.dev` subdomain or a [Custom Domain](/workers/configuration/routing/custom-domains/), from your own machine or from any CI/CD system, including [Cloudflare's own](/workers/ci-cd/builds/).

The following command will build and deploy your project. If you're using CI, ensure you update your ["deploy command"](/workers/ci-cd/builds/configuration/#build-settings) configuration appropriately.

<PackageManagers type="run" args={"deploy"} />

---

## Bindings

Your Analog application can be fully integrated with the Cloudflare Developer Platform, in both local development and in production, by using product bindings. The [Nitro documentation](https://nitro.unjs.io/deploy/providers/cloudflare#direct-access-to-cloudflare-bindings) provides information about configuring bindings and how you can access them in your Analog API routes.

<Render file="frameworks-bindings" product="workers" />
Loading