Skip to content

Conversation

remotesynth
Copy link
Collaborator

This adds a get started button to the top navigation to encourage sign ups. This links to https://app.localstack.cloud/sign-up. If you are in the snowflake docs, it will add an ?emulator=snowflake as is done in the web site.

Copy link

cloudflare-workers-and-pages bot commented Aug 28, 2025

Deploying localstack-docs with  Cloudflare Pages  Cloudflare Pages

Latest commit: 8ca609c
Status: ✅  Deploy successful!
Preview URL: https://78af914f.localstack-docs.pages.dev
Branch Preview URL: https://get-started-button.localstack-docs.pages.dev

View logs

@quetzalliwrites
Copy link
Collaborator

Tested it and it looks great! It seems to work on the AWS side, but the Snow seems to have a tiny issue... even tho initially it appends the snow parameter to the URL, it quickly disappears and doesn't seem to work in the final load?

Comment on lines 6 to 11
const isSnowflakePage = route.id.startsWith('snowflake');

// Build the URL with conditional parameter
const getStartedUrl = isSnowflakePage
? 'https://app.localstack.cloud/sign-up?emulator=snowflake'
: 'https://app.localstack.cloud/sign-up';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const isSnowflakePage = route.id.startsWith('snowflake');
// Build the URL with conditional parameter
const getStartedUrl = isSnowflakePage
? 'https://app.localstack.cloud/sign-up?emulator=snowflake'
: 'https://app.localstack.cloud/sign-up';
const isSnowflakePage = route.id.startsWith('snowflake');
// Build the URL with conditional parameter
const getStartedUrl = isSnowflakePage
? 'https://app.localstack.cloud/sign-up?emulator=snowflake'
: 'https://app.localstack.cloud/sign-up';

In this case, should we remove these lines @remotesynth ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I tweaked the lines but left them in. The URL variable doesn't really do anything it seems at the moment but I think it's worth differentiating which docs they came from anyway.

It was confusing that there is a Getting Started and a Get Started. I didn't want people to think this led to a docs page. Also cleaned up the code a bit. Left the emulator tag in although it doesn't do anything at the moment.
@quetzalliwrites quetzalliwrites merged commit dcf6439 into main Sep 3, 2025
1 check passed
@quetzalliwrites quetzalliwrites deleted the get-started-button branch September 3, 2025 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants