Skip to content

Commit b4d2f66

Browse files
committed
fix conflict
2 parents 462d0ae + 369d515 commit b4d2f66

File tree

2 files changed

+68
-0
lines changed

2 files changed

+68
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---
2+
section: community
3+
date: Last Modified
4+
title: "Community FAQ"
5+
lang: "en"
6+
permalink: "community/faq"
7+
excerpt: "Frequently asked questions about the Scroll community"
8+
---
9+
10+
import Aside from "../../../../components/Aside.astro"
11+
import ToggleElement from "../../../../components/ToggleElement.astro"
12+
13+
**What is Scroll, in plain terms?**
14+
15+
Scroll is an Ethereum Layer 2 that makes transactions faster and cheaper without sacrificing security, using zero-knowledge proofs to verify everything on Ethereum.
16+
17+
**What is Scroll's mission?**
18+
19+
Scroll's mission is to remove the trade-offs between scalability and security. Fast finality, full Ethereum compatibility, and uncompromising security.
20+
21+
**What is Scroll's vision?**
22+
23+
Scroll aims to empower humanity—starting with developers and users—by making decentralized computing accessible to billions, while building in the open, fighting for decentralization and censorship resistance, and contributing improvements back to Ethereum.
24+
25+
**What are Scroll's core values?**
26+
27+
- Empower accessibility at global scale
28+
- Build in the open with community collaboration
29+
- Preserve decentralization and censorship resistance
30+
- Advance Ethereum's end goal: "zk-SNARK everything"

src/middleware.ts

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import type { MiddlewareHandler } from "astro"
2+
3+
export const onRequest: MiddlewareHandler = (context, next) => {
4+
const url = new URL(context.request.url)
5+
const pathname = url.pathname
6+
7+
if (
8+
pathname.startsWith("/sdk") ||
9+
pathname.startsWith("/en/sdk") ||
10+
pathname.startsWith("/es/sdk") ||
11+
pathname.startsWith("/tr/sdk") ||
12+
pathname.startsWith("/zh/sdk")
13+
) {
14+
return context.redirect("/developers", 301)
15+
}
16+
17+
if (
18+
pathname.startsWith("/learn") ||
19+
pathname.startsWith("/en/learn") ||
20+
pathname.startsWith("/es/learn") ||
21+
pathname.startsWith("/tr/learn") ||
22+
pathname.startsWith("/zh/learn")
23+
) {
24+
return context.redirect("/technology", 301)
25+
}
26+
27+
if (
28+
pathname.startsWith("/user-guide") ||
29+
pathname.startsWith("/en/user-guide") ||
30+
pathname.startsWith("/es/user-guide") ||
31+
pathname.startsWith("/tr/user-guide") ||
32+
pathname.startsWith("/zh/user-guide")
33+
) {
34+
return context.redirect("/community", 301)
35+
}
36+
37+
return next()
38+
}

0 commit comments

Comments
 (0)