Skip to content
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
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"dependencies": {
"@astrojs/preact": "^5.1.4",
"@astrojs/vercel": "^10.0.8",
"@bryanguffey/astro-standard-site": "^1.0.3",
"@libsql/client": "^0.17.3",
"@preact/signals": "^2.9.1",
"@vercel/analytics": "^1.6.1",
Expand Down
138 changes: 138 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions src/pages/.well-known/site.standard.publication.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import type { APIRoute } from 'astro';
import { generatePublicationWellKnown } from '@bryanguffey/astro-standard-site';
import starpodConfig from '../../../starpod.config';

export const GET: APIRoute = () => {
const { standardSite } = starpodConfig;

if (!standardSite) {
return new Response('standard.site not configured', { status: 404 });
}

return new Response(
generatePublicationWellKnown({
did: standardSite.did,
publicationRkey: standardSite.publicationRkey
}),
{ headers: { 'Content-Type': 'text/plain' } }
);
};
16 changes: 16 additions & 0 deletions src/utils/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,17 @@ export type Host = {
website?: string;
};

export type StandardSiteConfig = {
/**
* Your ATProto DID (e.g., "did:plc:abc123"). Find yours at https://bsky.app/settings.
*/
did: string;
/**
* The publication record key from when you created your publication on ATProto.
*/

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

may need better instructions?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Replaced with env vars and added setup instructions in CLAUDE.md under Environment Variables — includes where to find your DID and how to get the publication rkey. Fixed in 51f2d0b.

publicationRkey: string;
};

export type StarpodConfig = {
/**
* A very short tagline for your show. Generally, no more than one sentence. Less is more here.
Expand Down Expand Up @@ -53,6 +64,11 @@ export type StarpodConfig = {
* The url to the RSS feed where your podcast is hosted.
*/
rssFeed: string;
/**
* Configuration for standard.site (ATProto/Bluesky federation).
* When provided, enables the .well-known/site.standard.publication verification endpoint.
*/
standardSite?: StandardSiteConfig;
};

export const defineStarpodConfig = (config: StarpodConfig) => config;
6 changes: 5 additions & 1 deletion starpod.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,9 @@ export default defineStarpodConfig({
spotify: 'https://open.spotify.com/show/19jiuHAqzeKnkleQUpZxDf',
youtube: 'https://www.youtube.com/@WhiskeyWebAndWhatnot/'
},
rssFeed: 'https://rss.flightcast.com/w7bqgc792i30fd43a32uawx0.xml'
rssFeed: 'https://rss.flightcast.com/w7bqgc792i30fd43a32uawx0.xml',
standardSite: {
did: 'did:plc:your-did-here',
publicationRkey: 'your-publication-rkey-here'
}

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

cant this pull from config, or config pull from this? should only need written once

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Moved to environment variables (STANDARD_SITE_DID and STANDARD_SITE_PUBLICATION_RKEY) — matching the existing DISCORD_WEBHOOK pattern. Values are set once in .env, endpoint reads directly from import.meta.env. No more placeholder config in starpod.config.ts. Fixed in 51f2d0b.

});