Skip to content

Commit

Permalink
chore: docs updates
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisbbreuer committed Dec 9, 2024
1 parent 5690895 commit 5672ee8
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 21 deletions.
17 changes: 10 additions & 7 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,27 +1,30 @@
import { defineConfig } from 'vitepress'

// https://vitepress.dev/reference/site-config
export default defineConfig({
title: 'Reverse Proxy',
description: 'A better developer environment.',
cleanUrls: true,
themeConfig: {
// https://vitepress.dev/reference/default-theme-config
nav: [
{ text: 'Home', link: '/' },
{ text: 'Examples', link: '/markdown-examples' },
{ text: 'Docs', link: '/intro' },
{ text: 'Install', link: '/install' },
],

sidebar: [
{
text: 'Examples',
text: 'Get Started',
items: [
{ text: 'Markdown Examples', link: '/markdown-examples' },
{ text: 'Runtime API Examples', link: '/api-examples' },
{ text: 'Introduction', link: '/intro' },
{ text: 'Install', link: '/install' },
],
},
],

socialLinks: [{ icon: 'github', link: 'https://github.com/vuejs/vitepress' }],
socialLinks: [
{ icon: 'github', link: 'https://github.com/stacksjs/rpx' },
{ icon: 'bluesky', link: 'https://bsky.app/profile/chrisbreuer.dev' },
{ icon: 'twitter', link: 'https://twitter.com/stacksjs' },
],
},
})
30 changes: 18 additions & 12 deletions docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,27 @@ layout: home

hero:
name: "Reverse Proxy"
text: "A better developer environment."
tagline: My great project tagline
text: "Modern, fast reverse proxy."
tagline: "For a better local development environment."
actions:
- theme: brand
text: Markdown Examples
link: /markdown-examples
text: Documentation
link: /intro
- theme: alt
text: API Examples
link: /api-examples
text: View on GitHub
link: https://github.com/stacksjs/rpx

features:
- title: Feature A
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature B
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: Feature C
details: Lorem ipsum dolor sit amet, consectetur adipiscing elit
- title: "Smart Reverse Proxy"
icon: "🔀"
details: "Pretty development URLs for your local environment."
- title: "HTTPS Support"
icon: "🔒"
details: "Automatic, and configurable, HTTPS support."
- title: "`/etc/hosts` Management"
icon: "📝"
details: "Self-cleans your `/etc/hosts` file."
- title: "CLI & Library"
icon: "🛠"
details: "Use the CLI or the library in your own project."
---
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions src/https.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ export function resolveSSLPaths(options: ReverseProxyConfigs, defaultConfig: typ
})

// Filter out undefined values from arrays
const altNameIPs = options.https.altNameIPs?.filter((ip): ip is string => ip !== undefined) || baseConfig.altNameIPs
const altNameURIs = options.https.altNameURIs?.filter((uri): uri is string => uri !== undefined) || baseConfig.altNameURIs
const altNameIPs = options.https.altNameIPs?.filter((ip: any): ip is string => ip !== undefined) || baseConfig.altNameIPs
const altNameURIs = options.https.altNameURIs?.filter((uri: any): uri is string => uri !== undefined) || baseConfig.altNameURIs

// Override with provided paths
return {
Expand Down

0 comments on commit 5672ee8

Please sign in to comment.