A CLI for publishing standard.site documents to ATProto sequoia.pub

Can we have an empty string as pathPrefix? #24

Closed stevedylan.dev
Closed opened by stevedylan.dev

My blog has no path prefix for posts — it is just domain-slash-slug as in https://cuducos.me/building-a-custom-bluesky-feed-part-1.html

If I set "pathPrefix": "" in sequoia.json it gets overwritten by this line:

	const prefix = pathPrefix || "/posts";

I am not an Typescript expert, so… just asking: would it make sense to change this line to something like this to allow empty prefixes?

	if (pathPrefix === undefined || pathPrefix === null) {
		pathPrefix = "/posts"
	}
	const prefix = pathPrefix

Hey there! Yes this is a great point, sorry I missed this case! Will make a patch to fix it

@cuducos.me Fixed in !53 and release v0.5.4! If you run the upgrade command you should see the changes reflected 🫡

npm i -g sequoia-cli@latest
Sign up or Sign in to add to the discussion.