Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serve on docs.restate.dev #87

Merged
merged 3 commits into from
Jul 26, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ RUN yarn build
FROM nginx:stable-alpine as deploy
WORKDIR /restate-documentation
# Copy what we've built from production
COPY --from=builder /restate-documentation/build /usr/share/nginx/html/docs
COPY --from=builder /restate-documentation/build /usr/share/nginx/html/
# Update nginx configuration
COPY --from=builder /restate-documentation/docker/nginx.conf /etc/nginx/
9 changes: 6 additions & 3 deletions docker/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,12 @@ http {
# keep request port
absolute_redirect off;

# redirect to /docs path which is the base url of the documentation
location = / {
return 301 /docs;
# redirect /docs/ to / as some browsers may have the old /docs/ redirect cached
location = /docs/ {
return 301 /;
}
location = /docs {
return 301 /;
}
}
}
4 changes: 2 additions & 2 deletions docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ const config = {
favicon: 'img/favicon.ico',

// Set the production url of your site here
url: 'https://restate.dev',
url: 'https://docs.restate.dev',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/docs',
baseUrl: '/',

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand Down