From 7cbf74aa80dca1fc3a77f45f2c13acecbb129ad9 Mon Sep 17 00:00:00 2001 From: Ryan Cartwright Date: Thu, 24 Apr 2025 10:10:02 +1000 Subject: [PATCH 1/2] remove winglang comparison --- docs/misc/comparison/winglang.mdx | 54 ------------------------------- docs/misc/faq.mdx | 1 - 2 files changed, 55 deletions(-) delete mode 100644 docs/misc/comparison/winglang.mdx diff --git a/docs/misc/comparison/winglang.mdx b/docs/misc/comparison/winglang.mdx deleted file mode 100644 index faedbdd4c..000000000 --- a/docs/misc/comparison/winglang.mdx +++ /dev/null @@ -1,54 +0,0 @@ ---- -description: 'Comparison to Winglang' ---- - -# Wing vs. Nitric - -[Wing](https://www.winglang.io) and Nitric share common goals of allowing developers to build modern applications for the cloud without worrying about infrastructure. Where they differ is on approach and fine details. - -Wing is a new language for cloud development, it lets you bring cloud concepts into your application code. Applications written in Wing are transpiled into Terraform and JavaScript for deployment to the cloud. - -Nitric is implemented differently, providing SDKs for existing languages such as TypeScript, JavaScript, C#, Go, Python and Java. The Nitric SDKs interact with a deployment engine and [providers](/providers) which can deploy your applications to different clouds. - -Both options are extremely productive, it's up to you which approach you prefer. As you can see from the examples below the experience with either option is similar. - -## Code Comparison - - - - - -**Nitric** - -```javascript title:hello.js -import { api } from '@nitric/sdk' - -const helloApi = api('far-away-galaxy-api') - -helloApi.get('/', async ({ req, res }) => { - res.body = 'Hello from Nitric' -}) -``` - - - - - -**Wing** - -```javascript title:hello.w -bring cloud; - -let api = new cloud.Api(); - -api.get("/", inflight (request: cloud.ApiRequest): cloud.ApiResponse => { - return cloud.ApiResponse { - status: 200, - body: "Hello from Wing" - }; -}); -``` - - - - diff --git a/docs/misc/faq.mdx b/docs/misc/faq.mdx index a910dc3a6..a51ec1a75 100644 --- a/docs/misc/faq.mdx +++ b/docs/misc/faq.mdx @@ -52,7 +52,6 @@ Learn how Nitric compares to: - [Terraform](./comparison/terraform) - [SST](./comparison/sst) - [Encore](./comparison/encore) -- [Wing](./comparison/winglang) - [Ampt](./comparison/ampt) ## More questions? From 2d012a146ce784e92b3489f7a808dd30b8a427ef Mon Sep 17 00:00:00 2001 From: Ryan Cartwright Date: Mon, 28 Apr 2025 12:07:34 +1000 Subject: [PATCH 2/2] add redirect for missing winglang comparison --- next.config.mjs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/next.config.mjs b/next.config.mjs index 3246c1d70..cee234839 100644 --- a/next.config.mjs +++ b/next.config.mjs @@ -632,6 +632,12 @@ const nextConfig = { basePath: false, permanent: true, }, + { + source: '/docs/misc/comparison/winglang', + destination: '/docs/', + basePath: false, + permanent: true, + }, ] }, async headers() {