forked from ONEARMY/community-platform
-
Notifications
You must be signed in to change notification settings - Fork 0
🤖 Release PR #1
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
Open
github-actions
wants to merge
6,830
commits into
production
Choose a base branch
from
master
base: production
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
🤖 Release PR #1
Conversation
This file contains hidden or 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
refactor: model level string literal types to enums
…ect-save fix: prevent user setting save overwriting impact entry
🤖 Release PR
feat: minor question module tweaks
…d-follow-up chore(messaging): isBlockedFromMessaging follow up
feat: allow users to add comments feat(components): support custom placeholder text in CreateComment input chore: addressing merge conflicts feat: support adding Question comments feat: add ability to edit comments on Questions feat: delete question comments chore: address code nits
🤖 Release PR
…-opt-out feat(contact): switch to opt out
…-add-comments feat: question discussion add/edit comments
🤖 Release PR
…tor-usernames feat(research): select and validate research collaborators usernames
refactor: replace hamburger-menu component with theme-ui-menu component
…acoding docs: add viracoding as a contributor for code
🤖 Release PR
…ert-LC docs: add Robert-LC as a contributor for code
…ge-display-to-list feat: add image display to question list item
…descriptions feat: add clickable links to question description
…age-on-list-display feat: drop image on question item list display
chore: update faker-js
…egory-select fix: questions form category select
feat: add keywords, totalUpdates and totalUsefulVotes fields to research
fix: password change test to create new account
This reverts commit 9f73627.
…uestion-fetch fix: question store was still fetching all questions
…ore-costs fix: revert "refactor user notification tests"
* feat: support nested comments on Research comments * test: update to match new function signature * feat: adds error state for CreateReply
Comment on lines
+35
to
+72
app.use('*', async (req, res, next) => { | ||
const url = req.originalUrl | ||
try { | ||
// 1. Read index.html | ||
let template = fs.readFileSync( | ||
path.resolve(__dirname, 'index.html'), | ||
'utf-8', | ||
) | ||
|
||
// 2. Apply Vite HTML transforms. This injects the Vite HMR client, | ||
// and also applies HTML transforms from Vite plugins, e.g. global | ||
// preambles from @vitejs/plugin-react | ||
template = await vite.transformIndexHtml(url, template) | ||
|
||
// 3. Load the server entry. ssrLoadModule automatically transforms | ||
// ESM source code to be usable in Node.js! There is no bundling | ||
// required, and provides efficient invalidation similar to HMR. | ||
const { render } = await vite.ssrLoadModule( | ||
path.resolve(__dirname, './entry-server.mjs'), | ||
) | ||
|
||
// 4. render the app HTML. This assumes entry-server.js's exported | ||
// `render` function calls appropriate framework SSR APIs, | ||
// e.g. ReactDOMServer.renderToString() | ||
const appHtml = await render(url) | ||
|
||
// 5. Inject the app-rendered HTML into the template. | ||
const html = template.replace(`<!--ssr-outlet-->`, appHtml) | ||
|
||
// 6. Send the rendered HTML back. | ||
res.status(200).set({ 'Content-Type': 'text/html' }).end(html) | ||
} catch (e) { | ||
// If an error is caught, let Vite fix the stack trace so it maps back | ||
// to your actual source code. | ||
vite.ssrFixStacktrace(e) | ||
next(e) | ||
} | ||
}) |
Check failure
7B01Code scanning / CodeQL
Missing rate limiting High
This route handler performs , but is not rate-limited.
a file system access
Error loading related location
Loading
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
No description provided.