This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM node:lts-slim AS base | |
WORKDIR /app | |
EXPOSE 4321 | |
ENV HOST=0.0.0.0 | |
ENV PORT=4321 | |
ENV PNPM_HOME="/pnpm" | |
ENV PATH="$PNPM_HOME:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($request_uri ~ "([^\?]*)\?unwantedParam=(.*)") { | |
rewrite ^ "https://www.example.org?" permanent; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* These class and hook allow exposing your data to Yoast, for it to build | |
* the sitemap, split it correctly in multiple pages every 1000 entries, | |
* and add it to its index. Here's a list of the placeholders I used : | |
* - MY_NAMESPACE: your Plugin/theme/custom namespace | |
* | |
* - MY_CUSTOM_DATATYPE: The type of data you're exposing in those sitemaps | |
* - MY_CUSTOM_DATATABLE: Database table hosting your data |