mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-02 12:00:10 +08:00
gave more memory to the generate code function, added cors
This commit is contained in:
parent
5dd37dd677
commit
a16435249b
1 changed files with 8 additions and 2 deletions
|
@ -139,6 +139,12 @@ exports.changeName = functions.https.onCall((request, response) => {
|
|||
}
|
||||
});
|
||||
|
||||
exports.handler = (req, res) => {
|
||||
res
|
||||
.set({ "Access-Control-Allow-Origin": "https://monkey-type.com/" })
|
||||
.sendStatus(200);
|
||||
};
|
||||
|
||||
exports.checkIfNeedsToChangeName = functions.https.onCall(
|
||||
(request, response) => {
|
||||
try {
|
||||
|
@ -1128,8 +1134,8 @@ class Leaderboard {
|
|||
|
||||
exports.generatePairingCode = functions
|
||||
.runWith({
|
||||
timeoutSeconds: 60,
|
||||
memory: "1GB",
|
||||
timeoutSeconds: 100,
|
||||
memory: "2GB",
|
||||
})
|
||||
.https.onCall((request, response) => {
|
||||
try {
|
||||
|
|
Loading…
Reference in a new issue