question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

multiple sites for www redirect?

See original GitHub issue

Is it possible to deploy multiple buckets within the one serverless.yml? For example, i’d like to be able to deploy domain.com with the client files and www.domain.com to redirect to domain.com or visa versa.

If this isn’t supported currently I’d definately be interested in adding it as a feature if there is intrest.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:4
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
junjettrasmontecommented, Aug 28, 2020

I was able to deploy to multiple buckets without any changes to this package.

client:
   bucketName: ${opt:client}-${opt:stage, 'dev'}.domain.tld
   distributionFolder: client/${opt:client}/dist
   indexDocument: index.html
   errorDocument: error.html

my file structure is

./serverless.yml
./client/client1/dist/
./client/client2/dist/
./client/client3/dist/

then to deploy

sls client deploy --stage dev --client client1
sls client deploy --stage dev --client client2
sls client deploy --stage dev --client client3
0reactions
rstittdacommented, Apr 13, 2021

I’ll take a look this week at the PR as it has been a while.

From: Stefan @.> Sent: Tuesday, 13 April 2021 6:43 PM To: fernando-mc/serverless-finch @.> Cc: Russell Stitt @.>; Mention @.> Subject: Re: [fernando-mc/serverless-finch] multiple sites for www redirect? (#56)

@rstittdahttps://github.com/rstittda would your branch e ready for a PR? It looks like the solution proposed just above doesn’t allow one regular site plus a redirect like OP mentioned.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHubhttps://github.com/fernando-mc/serverless-finch/issues/56#issuecomment-818582846, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AOKNSP3E6DFLRLTDDQLGIX3TIQDKNANCNFSM4E73I3ZQ. Russell Stitt Technical Development Lead

Data Action Phone 08 8201 1000 | Service Desk 08 8201 1400 Adelaide | Melbourne | Sydney

Data Action Pty Ltd, Commercial In Confidence: The content of this message is confidential and is to be used solely for the purposes provided. If you have received this message in error please delete the document and notify Data Action immediately. Think green before you print this screen.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is Multiple Domains Pointing to Single Website Good for SEO?
Will redirecting other domains to a primary one be a good idea for SEO? Here's what you need to know before you make...
Read more >
http to https redirection multiple sites - iis - Server Fault
I use IIS10 and I want to redirect all HTTP to HTTPS for all my sites. For example: http://one.test.example should be redirected to...
Read more >
Website with multiple redirects - Super User
When a redirect occurs, the browser is instructed to load a new URL(page). If multiple redirects occur its simply a matter of each...
Read more >
5 Ways to Redirect a Website URL - How it Works - HostGator
1. Redirect a Subdirectory to a Page on Your Site · 2. Redirect Duplicate Content to the Original Page · 3. Redirect Multiple...
Read more >
Pointing Two URLs to the Same Website - cPanel Blog
Pointing two URLs to the same website is a good way to direct traffic to your site from several different domain names.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found