Skip to content

Commit

Permalink
updated home page
Browse files Browse the repository at this point in the history
  • Loading branch information
lukeshay committed Jul 18, 2024
1 parent 5459442 commit 0a93be7
Show file tree
Hide file tree
Showing 11 changed files with 16 additions and 10 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-buckets-invite.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@astro-aws/adapter": patch
---

Support x-forwarded-host in ssr setup
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: CI

on:
pull_request:
pull_request_target:
push:
branches:
- "main"
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@astro-aws/docs",
"version": "0.0.0",
"private": true,
"homepage": "https://astro-aws.org/",
"homepage": "https://www.astro-aws.org/",
"repository": {
"type": "git",
"url": "ssh://[email protected]/lukeshay/astro-aws.git",
Expand Down
2 changes: 1 addition & 1 deletion apps/infra/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@astro-aws/infra",
"version": "0.0.0",
"private": true,
"homepage": "https://astro-aws.org/",
"homepage": "https://www.astro-aws.org/",
"repository": {
"type": "git",
"url": "ssh://[email protected]/lukeshay/astro-aws.git",
Expand Down
2 changes: 1 addition & 1 deletion apps/infra/src/lib/constants/environments.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const ENVIRONMENT_PROPS: Record<Environment, EnvironmentProps> = {
environment: Environments.PROD,
websites: [
{
aliases: ["www.docs"],
aliases: ["www", "www.docs", ""],
hostedZoneName: "astro-aws.org",
mode: "static",
app: "apps/docs",
Expand Down
2 changes: 1 addition & 1 deletion examples/base/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@astro-aws/examples-base",
"version": "0.0.0",
"private": true,
"homepage": "https://astro-aws.org/",
"homepage": "https://www.astro-aws.org/",
"repository": {
"type": "git",
"url": "ssh://[email protected]/lukeshay/astro-aws.git",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@astro-aws/root",
"version": "0.0.0",
"private": true,
"homepage": "https://astro-aws.org/",
"homepage": "https://www.astro-aws.org/",
"repository": {
"type": "git",
"url": "ssh://[email protected]/lukeshay/astro-aws.git",
Expand Down
2 changes: 1 addition & 1 deletion packages/adapter/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"aws",
"aws-lambda"
],
"homepage": "https://astro-aws.org/",
"homepage": "https://www.astro-aws.org/",
"repository": {
"type": "git",
"url": "ssh://[email protected]/lukeshay/astro-aws.git",
Expand Down
3 changes: 2 additions & 1 deletion packages/adapter/src/lambda/handlers/ssr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ const createExports = (
headers.set("cookie", event.cookies.join("; "))
}

const domainName = headers.get("x-forwarded-host") ?? event.requestContext.domainName;
const domainName =
headers.get("x-forwarded-host") ?? event.requestContext.domainName
const qs = event.rawQueryString.length ? `?${event.rawQueryString}` : ""
const url = new URL(
`${event.rawPath.replace(/\/?index\.html$/u, "")}${qs}`,
Expand Down
2 changes: 1 addition & 1 deletion packages/constructs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"aws-lambda",
"aws-cdk"
],
"homepage": "https://astro-aws.org/",
"homepage": "https://www.astro-aws.org/",
"repository": {
"type": "git",
"url": "ssh://[email protected]/lukeshay/astro-aws.git",
Expand Down
2 changes: 1 addition & 1 deletion scripts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@astro-aws/scripts",
"version": "0.1.0",
"private": true,
"homepage": "https://astro-aws.org/",
"homepage": "https://www.astro-aws.org/",
"repository": {
"type": "git",
"url": "ssh://[email protected]/lukeshay/astro-aws.git",
Expand Down

0 comments on commit 0a93be7

Please sign in to comment.